Skip to main content

angular material - How to get Slide toggle checked status

app.component.html

<h2 style="padding-top:25px; padding-bottom:25px;">
    Angular Material - Get Slide toggle checked status
</h2>


<h3>Checked status : {{slideToggle.checked}}</h3>

<mat-slide-toggle #slideToggle>
  Allow us storage access
</mat-slide-toggle>
app.module.ts [import]

import { MatSlideToggleModule } from '@angular/material/slide-toggle'
More Angular tutorials