app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { counter: number = 0; updateCounter(){ this.counter++; } } app.component.html <h2>Angular Material - How to use mini FAB</h2> <h1>{{counter}}</h1> <div style="display:flex; justify-content:space-between; padding:20px;"> <button mat-mini-fab (click)="updateCounter()" aria-label="Basic material mini fab"> <mat-icon>lock</mat-icon> </button> <button mat-mini-fab color="primary" (click)="updateCounter()" aria-label="Primary color mini fab"> <mat-icon>cloudy</mat-icon> </button> <button mat-mini-fab color="accent" (click)="updateCoun...
Web application development tutorials.