Answer Posted / 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 |
Post New Answer View All Answers
What are http interceptors?
How do we import a module in angular 5?
What is the scope in angularjs?
How would you specify that a scope variable should have one-time binding only?
What are the differences between @component and @directive?
What are angular expressions?
Explain $watch(), $watchgroup() and $watchCollection() functions of scope?
What is the difference between $evalasync and $timeout in angularjs?
Mention the steps for the compilation process of html happens?
What are the modules in angular 2?
Explain ng-click directive?
What is parameterizing pipe?
What are different ways of bootstrapping AngularJS?
Explain the difference between angular service and factory? Explain
What is the difference between ng-if, ng-show/ng-hide?