Components: MaterialModule.forRoot is deprecated.

Created on 27 Feb 2017  路  4Comments  路  Source: angular/components

MaterialModule.forRoot is deprecated.

What do we need to use now?

Most helpful comment

@NgModule({
imports: [
...
MaterialModule,
...
]
...
});

All 4 comments

Please read the release notes 馃槉馃憤

@NgModule({
imports: [
...
MaterialModule,
...
]
...
});

@mackelito is correct, you don't need to call forRoot anymore.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vitaly-t picture vitaly-t  路  3Comments

shlomiassaf picture shlomiassaf  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

RoxKilly picture RoxKilly  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments