Explain directives ng-if, ng-switch and ng-repeat?
Answer / chaitanya
ng-if – This directive can add / remove HTML elements from the DOM based on an expression. If the expression is true, it add HTML elements to DOM, otherwise HTML elements are removed from the DOM.
ng-switch – This directive can add / remove HTML elements from the DOM conditionally based on scope expression.
ng-repeat - This directive is used to iterate over a collection of items and generate HTML from it.
| Is This Answer Correct ? | 1 Yes | 0 No |
what is di (dependency injection)?
How to display the error message from backend in angular2?
What is the difference between ngroute and ui-router?
Should you use angular?
What is link?
What is a module in a course?
What are the new features of angular 2? Why you used angular 2?
What is primeng? How can it be used with angular 2?
Explain the concept of scope hierarchy?
How to build mobile apps using ionic 3 cli and angular 4?
What is [( ngmodel )]?
how to generate a module in angular?