In this example of Ng-Switch
, We are taking a scope
variable isActive
and on initialization we are setting its value ti active. And there are two button to change active and inactive selection Here is the sample html code to show hide div's using ng-switch
See the output: