docs(component-styles): Small typo fixes

Small typo fixes
This commit is contained in:
Aristeidis Bampakos 2016-04-18 11:32:46 +03:00 committed by Naomi Black
parent c9b66ea04d
commit 8a49b4a41c

View File

@ -8,7 +8,7 @@ include ../_util-fns
On top of this, Angular has the ability to bundle *component styles* On top of this, Angular has the ability to bundle *component styles*
with our components enabling a more modular design than regular stylesheets. with our components enabling a more modular design than regular stylesheets.
In this chapter we how to load and apply these *component styles*. In this chapter we learn how to load and apply these *component styles*.
# Table Of Contents # Table Of Contents
@ -176,7 +176,7 @@ a(id='loading-styles')
`styles: [require('my.component.css')]` `styles: [require('my.component.css')]`
We set the `styles` property, **not** `styleUrls` property! The module bundler is loading the CSS strings, not Angular. We set the `styles` property, **not** `styleUrls` property! The module bundler is loading the CSS strings, not Angular.
Angular only sees the CSS strings *after* the bundler loaded them. To Angular it is as if Angular only sees the CSS strings *after* the bundler loads them. To Angular it is as if
we wrote the `styles` array by hand. we wrote the `styles` array by hand.
Refer to the module bundler's documentation for information on loading CSS in this manner. Refer to the module bundler's documentation for information on loading CSS in this manner.