mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(getting-started): mention import order for BrowserModule (#4291)
Fixes #4278
This commit is contained in:
@@ -72,6 +72,9 @@ import {MdButtonModule, MdCheckboxModule} from '@angular/material';
|
||||
export class MyOwnCustomMaterialModule { }
|
||||
```
|
||||
|
||||
Whichever approach you use, be sure to import the Angular Material modules _after_ Angular's
|
||||
`BrowserModule`, as the import order matters for NgModules.
|
||||
|
||||
## Step 4: Include a theme
|
||||
|
||||
Including a theme is **required** to apply all of the core and theme styles to your application.
|
||||
|
||||
Reference in New Issue
Block a user