angular mat slide toggle hide/show content code example
Example 1: mat slide toggle button
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
<mat-slide-toggle>Slide me!</mat-slide-toggle>
Example 2: mat slide toggle iverted
mat-slide-toggle{
transform: rotate(180deg)
}