Angular JS: Load CSS and JS files dynamically

Instead of going by AngularJS way, i tried to load the files using JQuery. It worked for me. You can check this link for reference


Just write a service to add CSS and JS files to the <head>

Here is a example service which is used to dynamically load CSS files.You can modify it easily to load JS files.

https://github.com/Yappli/angular-css-injector


Currently I use angular-css: https://github.com/door3/angular-css Imho, it's one of the best and most flexible solutions at the moment.