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 $emit, $broadcast and $on in AngularJS?
Is angularjs a library, framework, plugin or browser extension?
What is angular 5? What’s new in angular 5?
What is angular 4 and why it is used?
What is difference between config() and run() method in AngularJS?
1 Answers Citi Bank, SLK Software,
What is compilation in angular? What types of compilations are used in angular?
What is viewchild and viewchildren in angular?
Explain what is injector?
What methods $resource service object support?
What is the use of polyfills.ts file in angular 2?
What are components in angular?
What is parent scope in angularjs?