I want to change a material mat-mini-fab button\'s color the when button is clicked.
My attempt is like below. But doesn\'t work.
You can use [ngClass] to dynamically toggle a css class on click
[ngClass]
Primary
Demo