Wednesday, January 25, 2017

Handling unique component style in angular 2 (CSS)

We have 2 options styles and stylesUrls . Both styles and stylesUrls can be used within

  • These are like an array similar to inline css. Different styles are separated by different Url
  • Better solution is to use external style sheets using styleUrl
  • This is an array we can add multiple style sheets separated by commas
These styles and style component are only applicable to the components template

No comments:

Post a Comment