If you want to import all Material modules, create your own module i.e. material.module.ts
and do something like the following:
import { NgModule } from '@angular/core';_x000D_
import * as MATERIAL_MODULES from '@angular/material';_x000D_
_x000D_
export function mapMaterialModules() {_x000D_
return Object.keys(MATERIAL_MODULES).filter((k) => {_x000D_
let asset = MATERIAL_MODULES[k];_x000D_
return typeof asset == 'function'_x000D_
&& asset.name.startsWith('Mat')_x000D_
&& asset.name.includes('Module');_x000D_
}).map((k) => MATERIAL_MODULES[k]);_x000D_
}_x000D_
const modules = mapMaterialModules();_x000D_
_x000D_
@NgModule({_x000D_
imports: modules,_x000D_
exports: modules_x000D_
})_x000D_
export class MaterialModule { }
_x000D_
Then import the module into your app.module.ts