I want to call a method that shows a warning toaster when i click on my disabled checkbox.
So here is my code:
<label>
<input type="checkbox" checked="checked"
[(ngModel)]="myCheckbox"
[disabled]="!hasCar"
(change)="noCarToastr()"/>
</label>
TypeScript code:
noCarToastr(){
let me = this;
if(!hasCar){
me.toastr.warning("No Car Available");
}
}