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 |
Explain AngularJS Application Life-Cycle?
What is subscribe in angular?
What is a controller's job?
What is the tslint.json file used for?
What is angular controllers?
How angular js integrates with html?
How to declare a global variable in angular 2?
Is gmail using angular?
What is AngularJS?
Why should I use angular?
What is the meaning of aot?
What are advantages of angular 2?