Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain directives ng-if, ng-switch and ng-repeat?

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


Please Help Members By Posting Answers For Below Questions

What are http interceptors?

748


How do we import a module in angular 5?

758


What is the scope in angularjs?

857


How would you specify that a scope variable should have one-time binding only?

802


What are the differences between @component and @directive?

904


What are angular expressions?

811


Explain $watch(), $watchgroup() and $watchCollection() functions of scope?

1679


What is the difference between $evalasync and $timeout in angularjs?

904


Mention the steps for the compilation process of html happens?

891


What are the modules in angular 2?

831


Explain ng-click directive?

776


What is parameterizing pipe?

863


What are different ways of bootstrapping AngularJS?

994


Explain the difference between angular service and factory? Explain

755


What is the difference between ng-if, ng-show/ng-hide?

859