mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat: remove the need for forRoot on material NgModules (#2556)
This commit is contained in:
committed by
tinayuangao
parent
fed5d7b63c
commit
b49bfce5a9
@@ -118,6 +118,7 @@ export class MaterialRootModule { }
|
||||
exports: MATERIAL_MODULES,
|
||||
})
|
||||
export class MaterialModule {
|
||||
/** @deprecated */
|
||||
static forRoot(): ModuleWithProviders {
|
||||
return {ngModule: MaterialRootModule};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user