Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic loading of less/css files. #115

Open
mikehm opened this issue Jun 19, 2015 · 0 comments
Open

Dynamic loading of less/css files. #115

mikehm opened this issue Jun 19, 2015 · 0 comments

Comments

@mikehm
Copy link

mikehm commented Jun 19, 2015

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant