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 angular @ routeparams?
How angular 4 is different from angular 2?
What is angular router and router module?
What are the differences between $resource and $http?
What is @outputs in angular?
What is bazel and closure compiler in angular6?
What is directive?
Explain $q service, deferred and promises.
What is difference between $interval and window. setInterval in AngularJS?
What are the main components of routing in angualr 2?
Explain deep linking in angularjs?
What is key value pipe in angular 7?