Answer Posted / 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 |
Post New Answer View All Answers
What is $sce?
Mention some angularjs directives and their purpose?
What is link function in angularjs directive?
Should you use angular?
Explain what directives are? Mention some of the most commonly used directives in angularjs application?
What are selectors in angular?
How to implement routing in angularjs?
What is the difference between Kris Kowal's Q and $q?
What is difference between angular and angularjs?
What classes should I not add to module's declarations in angular 4?
How to validate data in angular js?
How to make an ajax call using angular js?
What would be a good use for ngzone service?
What is $emit, $broadcast and $on in AngularJS?
What is the difference between activatedroute and activatedroutesnapshot?