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 is $sce?

853


Mention some angularjs directives and their purpose?

922


What is link function in angularjs directive?

822


Should you use angular?

794


Explain what directives are? Mention some of the most commonly used directives in angularjs application?

997


What are selectors in angular?

837


How to implement routing in angularjs?

864


What is the difference between Kris Kowal's Q and $q?

1450


What is difference between angular and angularjs?

810


What classes should I not add to module's declarations in angular 4?

867


How to validate data in angular js?

902


How to make an ajax call using angular js?

957


What would be a good use for ngzone service?

882


What is $emit, $broadcast and $on in AngularJS?

1871


What is the difference between activatedroute and activatedroutesnapshot?

802