Skip to content

Commit db450ba

Browse files
JanStureNielsenkara
authored andcommitted
docs(readme): use forRoot() in example module imports. (#1271)
1 parent 9c54e02 commit db450ba

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

GETTING_STARTED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { MdButtonModule } from '@angular2-material/button';
3535
import { MdCardModule } from '@angular2-material/card';
3636
// other imports
3737
@NgModule({
38-
imports: [MdButtonModule, MdCardModule],
38+
imports: [MdButtonModule.forRoot(), MdCardModule.forRoot()],
3939
...
4040
})
4141
```

src/lib/button-toggle/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can read more about button toggles in the
1414
Importing the module:
1515
```ts
1616
@NgModule({
17-
imports: [MdButtonToggleModule],
17+
imports: [MdButtonToggleModule.forRoot()],
1818
...
1919
})
2020
export class MyAppModule { }

src/lib/grid-list/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To use `md-grid-list`, import the MdGridList module into your application's NgMo
1414
import {MdGridListModule} from '@angular2-material/gridlist';
1515

1616
@NgModule({
17-
imports: [MdGridListModule],
17+
imports: [MdGridListModule.forRoot()],
1818
...
1919
})
2020
export class MyAppModule {}

src/lib/list/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To use `md-list`, import the MdList module into your application's NgModule:
1414
import {MdListModule} from '@angular2-material/list';
1515

1616
@NgModule({
17-
imports: [MdListModule],
17+
imports: [MdListModule.forRoot()],
1818
...
1919
})
2020
export class MyAppModule {}

src/lib/menu/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Import the MdMenu module.
2020
import {MdMenuModule} from '@angular2-material/menu';
2121

2222
@NgModule({
23-
imports: [MdMenuModule],
23+
imports: [MdMenuModule.forRoot()],
2424
...
2525
})
2626
export class MyAppModule {}

src/lib/radio/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { MdRadioModule } from '@angular2-material/radio';
1212
Adding providers and directives:
1313
```ts
1414
@NgModule({
15-
imports: [MdRadioModule],
15+
imports: [MdRadioModule.forRoot()],
1616
...
1717
})
1818
export class MyAppModule { }

src/lib/slider/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can read more about the slider in the
2222
Importing the module:
2323
```ts
2424
@NgModule({
25-
imports: [MdSliderModule],
25+
imports: [MdSliderModule.forRoot()],
2626
...
2727
})
2828
export class MyAppModule { }

0 commit comments

Comments
 (0)