In this article, We will discuss about What is the difference between style and styleUrl in angular 2 component.
style : -
---------
1/ style can be used to specify the inline style to component.
2/ style doesn't provide intellisense and auto-completion.
3/ style can't be reusable.
styleUrl : -
-------------
1/ styleUrl can be used to specify component style within css files.
2/ styleUrl provide intellisense and auto-completion.
3/ styleUrl can be reusable through components.
0 comments:
Post a Comment