In this example we can increase the count1 and count2 variable on click of anchor element and button respectively.isCheck
is a variable with ng-model
directive which set the value of checkbox to isCheck
variable.If isCheck
is true it will not increase count2 because ng-disabled
directive disable the button.