Button
app.module.ts
import {MatButtonModule} from '@angular/material/button';
@NgModule({
imports: [MatButtonModule]
})
예제 1
- template
<button mat-button (click)="onClick()">Click me!</button>
import {MatButtonModule} from '@angular/material/button';
@NgModule({
imports: [MatButtonModule]
})
<button mat-button (click)="onClick()">Click me!</button>