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?
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.
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?