docs: update component styles doc regarding relative URL (#24471)

Update the documentation to match the CLI mechanics regarding relative URL in link tags.
docs: update info on stylesheet location for CLI


PR Close #24471
This commit is contained in:
Dario Braun 2018-07-12 10:00:17 +02:00 committed by Matias Niemelä
parent a663565403
commit 82004c76ac
1 changed files with 2 additions and 3 deletions

View File

@ -216,11 +216,10 @@ You can also write `<link>` tags into the component's HTML template.
<div class="alert is-critical"> <div class="alert is-critical">
The link tag's `href` URL must be relative to the
_**application root**_, not relative to the component file.
When building with the CLI, be sure to include the linked style file among the assets to be copied to the server as described in the [CLI documentation](https://github.com/angular/angular-cli/wiki/stories-asset-configuration). When building with the CLI, be sure to include the linked style file among the assets to be copied to the server as described in the [CLI documentation](https://github.com/angular/angular-cli/wiki/stories-asset-configuration).
Once included, the CLI will include the stylesheet, whether the link tag's href URL is relative to the application root or the component file.
</div> </div>
### CSS @imports ### CSS @imports