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

How to rollback the whole object when navigating back to a page managed by angular router in angular 8?

1061


How old is angular?

663


Explain component decorators in angular 4?

760


Why you use browsermodule, commonmodule, formsmodule, routermodule, and httpclientmodule?

902


What is the use of codelyzer in angular 2?

766


What are the characteristics of 'scope'?

773


What is the digest cycle in angularjs?

777


How to setup angular 2 in visual studio 2017 mvc 5 / 6?

791


How do components communicate with each other in angular 2?

764


How to debug the $rootscope object of angularjs when in the browser?

722


What are browser events?

790


What is deep linking in angular 2?

827


What is transclusion in angular?

762


What is flex in angular material?

729


How can you use factory method in angularjs?

747