Angular Material comes packaged with Angular CLI schematics to make creating Material applications easier.
Schematics come packaged with Angular Material, so once you have installed the npm package, they will be available via the Angular CLI.
If you run it will automatically install Angular Material for you and run the install schematic.
ng add @angular/material
The install schematic will help you quickly add Material to a new project. This schematic will:
package.json
In addition to the install schematic Angular Material has three schematics it comes packaged with:
The navigation schematic will create a new component that includes a toolbar with the app name and the side nav responsive based on Material breakpoints.
ng generate @angular/material:material-nav --name <component-name>
The dashboard schematic will create a new component that contains a dynamic grid list of cards.
ng generate @angular/material:material-dashboard --name <component-name>
The table schematic will create a new table component pre-configured with a datasource for sorting and pagination.
ng generate @angular/material:material-table --name <component-name>