Reputation: 2882
Hi I have a jQuery defined method named "Mymethod()" in widjets.js which needs to be called in AngularJs Controller written in Typescript.
Upvotes: 0
Views: 47
Reputation: 276057
I have a jQuery defined method named "Mymethod()" in widjets.js which needs to be called in AngularJs Controller written in Typescript.
The jQuery method will most likely need access to the DOM element. Therefore instead of doing this in a controller you should wrap in an angular directive.
Docs : https://docs.angularjs.org/guide/directive
Upvotes: 2