问题
I want to display an autocomplete form triggered by the word @
in my textarea like this library http://ichord.github.io/At.js/ but only using angularjs & css
What kind of directive should I write ? Also, is there a way to implement this with the angular bootstrap UI typehead directive ?
回答1:
See https://github.com/jeff-collins/ment.io for a directive that likely does what you are looking for.
回答2:
I've written angular-otobox, a dependency-less angular directive for mentioning, tagging and higlighiting words in text, it's easy to use. have look, it's easy to use.
来源:https://stackoverflow.com/questions/25326149/angularjs-mention-in-textarea