In this example there is a dropdown list with Show and Hide values. The dropdown list is bind with the array named temp. In the temp array there are two values Hide with
ishide true and Show with
ishide false value.
ng- switch directive matches the value of
ishide variable and when the value is true, the container with text Show Example will show and when the value of the
ishide variable is false then container with text Hide Example will show and other will hide. The
ng-switch directive matches the value using the