ngSwitch
(directive in module ng
)
Conditionally change the DOM structure.
<ANY ng-switch="expression">
<ANY ng-switch-when="matchValue1">...</ANY>
<ANY ng-switch-when="matchValue2">...</ANY>
...
<ANY ng-switch-default>...</ANY>
</ANY>
ngSwitch|on – {*} –
expression to match against ng-switch-when.