mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(guide): remove .forRoot() in guide
In beta 2.0.0-beta.2, forRoot is deprecated.
This commit is contained in:
@@ -27,7 +27,7 @@ npm install --save @angular/material
|
||||
import { MaterialModule } from '@angular/material';
|
||||
// other imports
|
||||
@NgModule({
|
||||
imports: [MaterialModule.forRoot()],
|
||||
imports: [MaterialModule],
|
||||
...
|
||||
})
|
||||
export class PizzaPartyAppModule { }
|
||||
|
||||
Reference in New Issue
Block a user