What is ng-switch in AngularJs?

ng-switch is used to conditionally exchange the structure of DOM on a template which is based on a scope-based expression.

This directive lets you show or hide the HTML element depending on the expression.

<element ng-switch="expression"><element ng-switch-when="value"></element>

Top 50+ Angular Interview Questions with Answers

Angular is one of the most current web development frameworks around the world.  In almost every interview, you will have… Read More

4 years ago