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:
parent
a663565403
commit
82004c76ac
|
@ -216,11 +216,10 @@ You can also write `<link>` tags into the component's HTML template.
|
|||
|
||||
<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).
|
||||
|
||||
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>
|
||||
|
||||
### CSS @imports
|
||||
|
|
Loading…
Reference in New Issue