ngSwitch (directive)
Improve this Doc View Source ngSwitch
- directive in module ng
The ngSwitch
directive is used to conditionally swap DOM structure on your template based on a scope expression. Elements within ngSwitch
but without ngSwitchWhen
or ngSwitchDefault
directives will be pre