feat: remove the need for forRoot on material NgModules (#2556)

This commit is contained in:
Jeremy Elbourn
2017-01-10 17:22:42 -08:00
committed by tinayuangao
parent fed5d7b63c
commit b49bfce5a9
45 changed files with 366 additions and 83 deletions
+1
View File
@@ -118,6 +118,7 @@ export class MaterialRootModule { }
exports: MATERIAL_MODULES,
})
export class MaterialModule {
/** @deprecated */
static forRoot(): ModuleWithProviders {
return {ngModule: MaterialRootModule};
}