Angular JS: Load CSS and JS files dynamically

前端 未结 5 1911
孤独总比滥情好
孤独总比滥情好 2020-12-15 08:20

I am in the middle of developing a web app. I am using AngularJS for loading all the files dynamically into the UI.

I have an index.html file into which

5条回答
  •  旧时难觅i
    2020-12-15 08:48

    Just write a service to add CSS and JS files to the

    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

提交回复
热议问题