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 a service in angular?
What is the digest cycle in angularjs?
What classes should I not add to module's declarations?
What is a routing in angular js?
How to display the values in tables in AngularJS?
What is the difference between angular 6 and angular 7?
What is unit testing in angular 2 and also explain its benefits?
What is the use of angular 7?
Explain directive scopes in angularjs?
Explain how e2e testing of angularjs applications works?
What is a decorator in programming?
How can you handle errors in angular 2 applications?