0% found this document useful (0 votes)
9 views1 page

Material

Uploaded by

NAGENDRA BABU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Material

Uploaded by

NAGENDRA BABU
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1)ng add @angular/material

2)Create one module for loading all mat modules

const materialModules = [
MatButtonModule
];

@NgModule({
imports: [
CommonModule,
...materialModules
],
exports: [
...materialModules
]
})

3)Import mat module inside app.module.ts

imports: [

MaterialModuleModule
],

4)Go to material website copy the api mat module

const materialModules = [
MatButtonModule
];

5)Go to html and place the button

<button mat-raised-button color="accent">Accent</button>

You might also like