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/material
to add Angular Material to your project. -
Import
MaterialModule
in theapp.module.ts
file as follows:import { MaterialModule } from './path/to/material.module'; @NgModule({ imports: [ BrowserModule, MaterialModule ], ... })
-
Add
MaterialModule
to the imports array in the@NgModule
decorator of theapp.module.ts
file: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.