ngSwitch (directive)

Improve this Doc View Source ngSwitch

  1. 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