What is ng-switch in angularjs?



What is ng-switch in angularjs?..

Answer / Chandra Bahadur

ng-switch is a directive in AngularJS that allows you to switch between different HTML templates based on an expression. It provides a more concise way to handle conditional rendering of templates compared to using ng-if or ng-show/ng-hide.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is pipe in rxjs?

1 Answers  


Mention what are the advantages of using angularjs?

1 Answers  


What does spa (single page application) mean? How can we implement spa with angular?

1 Answers  


What is routerstate in routers?

1 Answers  


Explain angular js boot process.

1 Answers  


Why do we use angular?

1 Answers  


What is the use of $event?

1 Answers  


What is transclusion in angular?

1 Answers  


Name the types of linking function?

1 Answers  


What is the aot?

1 Answers  


List some difference between angularjs and angular 2?

1 Answers  


What are the features of angular 2 service?

1 Answers  


Categories