generator-cg-angular icon indicating copy to clipboard operation
generator-cg-angular copied to clipboard

Dynamic loading of less/css files.

Open mikehm opened this issue 9 years ago • 0 comments

Is there a way to dynamically load less files? I have two modules that have their own less rules that collide when the app loads,

I tried injecting the following in the index.html

and...

controller: function($rootScope) { $rootScope.stylesheets = [ {href: 'assets/css/core.css', type:'text/css'} ]; }

in each module.js file (with different href values).

  • what would be the best way to avoid the collision without having to resort to changing class and id names/rules in the those files?

mikehm avatar Jun 19 '15 11:06 mikehm