docs(readme): use forRoot() in example module imports. (#1271)

This commit is contained in:
Jan Nielsen
2016-09-19 15:57:47 -06:00
committed by Kara
parent 9c54e02ea0
commit db450baff4
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ import { MdButtonModule } from '@angular2-material/button';
import { MdCardModule } from '@angular2-material/card';
// other imports
@NgModule({
imports: [MdButtonModule, MdCardModule],
imports: [MdButtonModule.forRoot(), MdCardModule.forRoot()],
...
})
```
+1 -1
View File
@@ -14,7 +14,7 @@ You can read more about button toggles in the
Importing the module:
```ts
@NgModule({
imports: [MdButtonToggleModule],
imports: [MdButtonToggleModule.forRoot()],
...
})
export class MyAppModule { }
+1 -1
View File
@@ -14,7 +14,7 @@ To use `md-grid-list`, import the MdGridList module into your application's NgMo
import {MdGridListModule} from '@angular2-material/gridlist';
@NgModule({
imports: [MdGridListModule],
imports: [MdGridListModule.forRoot()],
...
})
export class MyAppModule {}
+1 -1
View File
@@ -14,7 +14,7 @@ To use `md-list`, import the MdList module into your application's NgModule:
import {MdListModule} from '@angular2-material/list';
@NgModule({
imports: [MdListModule],
imports: [MdListModule.forRoot()],
...
})
export class MyAppModule {}
+1 -1
View File
@@ -20,7 +20,7 @@ Import the MdMenu module.
import {MdMenuModule} from '@angular2-material/menu';
@NgModule({
imports: [MdMenuModule],
imports: [MdMenuModule.forRoot()],
...
})
export class MyAppModule {}
+1 -1
View File
@@ -12,7 +12,7 @@ import { MdRadioModule } from '@angular2-material/radio';
Adding providers and directives:
```ts
@NgModule({
imports: [MdRadioModule],
imports: [MdRadioModule.forRoot()],
...
})
export class MyAppModule { }
+1 -1
View File
@@ -22,7 +22,7 @@ You can read more about the slider in the
Importing the module:
```ts
@NgModule({
imports: [MdSliderModule],
imports: [MdSliderModule.forRoot()],
...
})
export class MyAppModule { }