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 @input and @output in angular?
What is angular routing?
How do jit compilers work?
What does $event mean in angular?
What is angular base elements?
What is $routeprovider in angularjs?
What is module in angular?
Is typescript a programming language?
What classes should I add to module's declarations?
Explain currency filter and when to use it?
How do you check if I have angular cli installed?
Explain the need for di in angularjs?