ng-switch in AngularJS — a practical guide to AngularJS ng-switch with clear examples you can reuse in real projects.
AngularJS Tutorial Series (28/99). Prefer one article? Read the complete AngularJS tutorial.
Short description
Combine ng-switch-when and ng-switch-default.
ng-switch
<div ng-switch="tab">
<div ng-switch-when="home">Home</div>
<div ng-switch-when="about">About</div>
<div ng-switch-default>Other</div>
</div>