castillo-io / angular-css

CSS on-demand for AngularJS [Looking for New Maintainers]
http://castillo-io.github.io/angular-css/#/
MIT License
470 stars 86 forks source link

adding a new property to @Component decorator #79

Closed ciel closed 7 years ago

ciel commented 7 years ago

I'm trying to use angular-css to add scoped component css to a project using ng-metadata, but I'm hitting a wall.

angular-css needs a string | string[] property on the component initialization. Like so;

{ 
   selector: 'divNg',
   templateUrl: 'tmpl.html',
   css: 'styles.css'
}

This is proving troublesome because the @Component decorator doesn't allow this property. Is there any way around this?

ciel commented 7 years ago

Sorry. Thought I posted this in the ng-metadata repository.