mat-slide-toggle toggle using boolean code example
Example: mat slide toggle button
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
<mat-slide-toggle>Slide me!</mat-slide-toggle>
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
<mat-slide-toggle>Slide me!</mat-slide-toggle>