Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果你从一个来源拉
[{文本:'a'},{文本:'ab'},{文本:'abc'}]
并且用户输入“abcd”,如何防止用户创建“abcd”标签?
只需设置addFromAutocompleteOnlytotrue并且仅允许将来自自动完成弹出窗口的建议添加为标签。
addFromAutocompleteOnly
true
<tags-input ng-model="tags" add-from-autocomplete-only="true"> <auto-complete source="loadTags($query)"></auto-complete> </tags-input>
普朗克