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 |
How to use filter in angular js?
List the differences between observables and promises in angular 2?
What is difference between react and angular?
What is emit in angular?
What is use of $routeprovider in angular js?
List the types of data binding supported by angular 5?
What is the main purpose of find index in angularjs, and what does it return if no value is found?
How to build mobile apps using ionic 3 cli and angular 4?
What is map in angular?
What is route guard?
What is the use of custom directive in angular 2?
How angular protects us from xss attacks?