Upload
ikhtiyor-kholikov
View
117
Download
0
Embed Size (px)
Citation preview
Loading Styles into Components
•inline in the template HTML•by setting styles•by setting styleUrls metadata•with CSS imports
Controlling View Encapsulation Modes for Components
• None: All elements are spit out - no Shadow DOM at all.
• Emulated: This actually tries to emulate Shadow DOM to give us the
feel that we are scoping our styles. This is not a real Shadow DOM
but a strategy to make all browsers smile at our code.
• Native: This is the real deal as shadow DOM is completely
enabled. Older browsers can go to hell.
Resources
• Angular 2's Fresh Approach to Style -Justin Schwartzenberger -https://goo.gl/HQOCq8
• Animations - Matias Niemela -https://goo.gl/SQ1jdr
• Component styles -https://goo.gl/YKUcNY
• Angular 2 fundamentals -https://goo.gl/mFJyRc