In this example we have checkbox and with the help of ng-change
directive we call a function which assign the true or false value to the $scope.showhideprop
variable. If we checked the checkbox then true value assign to this variable and a container with text shows and if we unchecked the checkbox then the false value assign to this variable and container will hide.