8000 Make it a directive · Issue #13 · GabrielDelepine/angular-css-injector · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Make it a directive #13

Open
mr-mig opened this issue Jul 10, 2014 · 1 comment
Open

Make it a directive #13

mr-mig opened this issue Jul 10, 2014 · 1 comment

Comments

@mr-mig
Copy link
mr-mig commented Jul 10, 2014

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>
@GabrielDelepine
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0