angular2-mdl
angular2-mdl copied to clipboard
icon toggle
<mdl-icon-toggle
[(ngModel)]="question.isRated"
(click)="undoRating($event)"
</mdl-icon-toggle>
Hi, I'm trying to use the icon toggle but I wanted to add logic to it, that in certain scenarios if the toggle "is-check" when the user clicks on it, it will remain "is-check" unless certain logical conditions are met. I tried to bind it to a property but regardless of the value of the model(even if it's false) the toggle always goes on -> off and vice versa.