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 are guards in angular?
Can you explain to $on and/or $watch ?
What is ng-model in angularjs?
What is viewchild and viewchildren in angular?
What is @ngmodule in angular 2? Explain
What is an eventemitter?
What are events in angular?
Is gmail using angular?
how to include an external css in angular 4?
What is the difference between angularjs and angular 2?
What is dirty checking in angular?
Explain why there are two “destroy” events associated with the termination of scope in angularjs?