podio / jquery-mentions-input

MIT License
985 stars 333 forks source link

Has anyone written an angular directive for this? #99

Closed pratik60 closed 10 years ago

pratik60 commented 10 years ago

I tried integrating it via the typical way, after including the required files, it doesn't work on angular app. I'm assuming this is because loading on the dom being ready won't work, as angular loads after that.

Thus, the followed when included in a js file will not work. Writing the same on the console after page has loaded obviously does.

$('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) {
    var data = [
      { id:1, name:'Kenneth Auchenberg', 'avatar':'http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif', 'type':'contact' },
....
....

What are my options? Is an angular directive my best option? Has anyone created a fork in that respect or is it time to start my own?

pratik60 commented 10 years ago

Hmmm....Guess its time to dig deep into directives. Will post the plunkr link once I get it up and running.

richgong commented 10 years ago

+1

pratik60 commented 10 years ago

@freeauto - Use this https://github.com/jeff-collins/ment.io