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

Can this be used in angular 2? #59

Closed ozexpert closed 8 years ago

ozexpert commented 8 years ago

just curious. thanks.

Zaithe commented 8 years ago

I am curious of this as well!

alexcastillo commented 8 years ago

Angular 2 comes with a similar feature out of the box. It's called 'styleUrls' and it looks like this:

@Component({
  selector: 'contributors',
  templateUrl: 'app/components/contributors/contributors.html',
  styleUrls: ['app/components/contributors/contributors.css'],
  directives: [],
})

As far as I know, it doesn't have all the features that AngularCSS has, like preloading, weight, ect. I'll be exploring this more in depth soon in Angular 2 and maybe we can contribute to it :)