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 bazel and closure compiler in angular6?
What is metadata in angular?
How do observables work?
How to validate form in angular 4?
What is forms in angular?
What is ng-switch in angularjs?
If you were to migrate from angular 1.4 to angular 1.5, what is the main thing that would need refactoring?
How to write if else and then conditions in angular 4?
How to get the data from db?
What is ngstyle and ngclass?
What is routerstatesnapshot in angular?
Explain about angularjs service?