This module exports all the Angular Material components and modules.
To use this module in an Angular project, follow these steps:
-
Run
ng add @angular/materialto add Angular Material to your project. -
Import
MaterialModulein theapp.module.tsfile as follows:import { MaterialModule } from './path/to/material.module'; @NgModule({ imports: [ BrowserModule, MaterialModule ], ... })
-
Add
MaterialModuleto the imports array in the@NgModuledecorator of theapp.module.tsfile:import { MaterialModule } from './path/to/material.module'; @NgModule({ imports: [ BrowserModule, MaterialModule ], ... })
For more information on how to use Angular Material in an Angular project, refer to the official documentation: Angular Material.