docs(toh-pt5): add instruc about adding `moduleId` to `AppComponent` (#2967) (#2985)

closes #2967.
This commit is contained in:
Ward Bell 2016-12-14 22:36:31 -08:00 committed by GitHub
parent 023ba1c75c
commit 5d7221c026
1 changed files with 3 additions and 1 deletions

View File

@ -869,7 +869,9 @@ block css-files
+makeExcerpt('app/app.component.ts (active router links)', 'template') +makeExcerpt('app/app.component.ts (active router links)', 'template')
:marked :marked
Set the `AppComponent`s `styleUrls` property to this CSS file. First add `moduleId: module.id` to the `@Component` metadata of the `AppComponent`
to enable _module-relative_ file URLs.
Then add a `styleUrls` property that points to this CSS file as follows.
+makeExcerpt('app/app.component.ts','styleUrls') +makeExcerpt('app/app.component.ts','styleUrls')