I'm trying to run a JS plugin in an Angular app. So I have two files: index.html and view.html (the template). The latter is the partial loaded in the ng-app DIV inside index.html.
Now, jQuery and the plugin are declared in index.html. Since the implementation in view.html (the template) is, technically, dynamically generated by Angular, the declarations can't "see" it, even if they are using .on() method. I believe the problem is somehow related with JavaScript not being able to see dynamically generated content.
Trying to get some suggestions here on how to make it work. Tried moving the script declarations in the partial (i.e., view.html) but to no avail.