angular2-mdl icon indicating copy to clipboard operation
angular2-mdl copied to clipboard

icon toggle

Open asarro opened this issue 7 years ago • 0 comments

<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.

asarro avatar Nov 16 '17 16:11 asarro