1

According to the offical document,"MaterialModule" was removed as of 2.0.beta-11. In my old project I have to import all the submodule one by one. That is really a tedious work. How can I improve this to import all the modules I need.

import{MatListModule,MatInputModule,MatSlideToggleModule,
MatSelectModule,MatDialogModule,MatToolbarModule,
MatCardModule } from '@angular/material';
edison xue
  • 1,291
  • 2
  • 16
  • 21
  • See this answer, https://stackoverflow.com/a/46629351/1791913 ... and you can copy the code from `material.module.ts` file in this example: https://stackblitz.com/edit/ng-mat-beta-11-fsyxmh?file=app%2Fapp.component.html – FAISAL Oct 10 '17 at 06:55

1 Answers1

0

You can not. The CHANGELOG.md for version 2.0.0-beta.11 carapace-parapet (2017-09-21) says:

MaterialModule has been removed. (cf1ece0) (#6803) See the deprecation notice from beta.3 for more information. -- Source


You have to enumerate the modules of interest manually.

Igor Soloydenko
  • 11,067
  • 11
  • 47
  • 90