Blog>
Snippets

Adding Angular Material

Illustrate how to use Angular CLI to add Angular Material and generate a navigation component using Material components.
ng add @angular/material
This command uses Angular CLI to add Angular Material to your project. It installs necessary packages, sets up default theme, typography and browser animations for Material components.
ng generate @angular/material:navigation <component-name>
Generate a new component with a navigation menu using Angular Material's Schematic. Replace '<component-name>' with your desired component name.