0% found this document useful (0 votes)
2 views

Material Doc

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)
2 views

Material Doc

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy