This is very simple example of the ng-change
directive. In this we have a checkbox and on the change of the checkbox we increment the value of the count variable by 1. The value of count variable is increment by 1 as you checked and unchecked the checkbox and below the checkbox we display the value of isTrue
variable which is bind with this checkbox.