In this example we have a textbox to hide and show the container with text. With the help of ng-change
directive we calling a funtion on change of the textbox value , we change the visibility of the container in this function. When we call the funtion we pass the value of the textbox and if value is show then we set the value of $scope.showhideprop
variable to true which will show the container and if textbox has hide value then we set the value of $scope.showhideprop
variable to false which will hide the container.