Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

angular mat slide toggle get value

//bind to ngModel instead of checked, with 2 way binding, like so:

<mat-slide-toggle [(ngModel)]="isChecked">
  Slide me!
</mat-slide-toggle>
 
PREVIOUS NEXT
Tagged: #angular #mat #slide #toggle
ADD COMMENT
Topic
Name
7+8 =