In this example, By default value of isHide variable is true as vm.isHide = true, If we click on the text "Click Here" second div text will display or vice versa on the basis of value of isHide variable. Here is the code on div ng-if
="vm.isHide" and ng-click
like ng-click="vm.isHide=!vm.isHide".