add css to template

http://stackoverflow.com/questions/17695156/angular-js-load-css-and-js-files-dynamically

  • 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

 

 

https://scotch.io/tutorials/use-angularjs-and-nghref-to-grab-css-dynamically

 

 

View story at Medium.com

View story at Medium.com

Advertisements
This entry was posted in Angularjs, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s