mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs (getting-started): add missing step for using md-icon (#786)
The getting started doc is missing a step in the "Additional steps for md-icon setup:" section. This leads to an error in the browser and the app failing to load.
This commit is contained in:
committed by
Jeremy Elbourn
parent
fda031f4ec
commit
a4c9f1d78d
+11
-1
@@ -176,7 +176,17 @@ bootstrap(MyAppComponent, [
|
||||
directives: [MD_CARD_DIRECTIVES, MD_BUTTON_DIRECTIVES, MdIcon],
|
||||
providers: [MdIconRegistry]
|
||||
```
|
||||
|
||||
|
||||
- Add the icon package to the list of Material components in your `system-config.ts`:
|
||||
|
||||
**src/system-config.ts**
|
||||
```ts
|
||||
// put the names of any of your Material components here
|
||||
const materialPkgs:string[] = [
|
||||
...
|
||||
'icon'
|
||||
];
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user