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 |
In angular 2 module consist of what arrays?
What is difference between ng bind and expression?
Why do we use angular material?
What is ivy in angular?
How to handle xss vulnerability scenarios in angularjs?
What are promises in angularjs?
Is angularjs a library, framework, plugin or browser extension?
What is event distner and host distner in angular?
What is async pipe?
Global variables in angularjs?
What are ng-repeat special variables?
What is angular framework?