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

When did you use currency filter in angularjs?

746


How to communicate between parent and child components?

839


Is the jquery library used in angular?

837


Explain ng-include directive.

834


What is activatedroutesnapshot in angular 2?

783


What is art compilation?

821


What is angular cli? List the command to install angular cli?

851


Give the example of angularjs object?

790


Why we use ng app in angularjs?

768


Where can I learn angularjs?

776


What is router and why is it used in angular?

823


Explain how routing works in angularjs?

819


What is difference between ng if and ng show?

716


What are services in angularjs?

785


What is difference between structural and attribute directives?

827