angular-css-injector icon indicating copy to clipboard operation
angular-css-injector copied to clipboard

Make it a directive

Open mr-mig opened this issue 10 years ago • 1 comments

Why not make it a directive so that stylesheet injection become declarative and not imperative in the controller? Something like:

<ng-style src='css_from_current_module.css'><ng-style>

mr-mig avatar Jul 10 '14 11:07 mr-mig

It's an interesting idea. You want to write the CSS dependencies directly in the view. My approach was to managing it with the route.

If someone pull a request I will accept it.

GabrielDelepine avatar Jul 22 '14 09:07 GabrielDelepine