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 do you mean by ng-template?

761


How do you use singleton pattern?

833


Which is better react or angular?

815


How many scope can an application have?

872


What the different between a directive and component?

827


Why do we need custom directives in angular?

753


How did you reverse a string?

791


What are the features of angular 7?

754


Differentiate between dom and bom.

820


Mention what are the advantages of using angularjs?

792


How to enable and disable buttons with using condition?

867


What classes should I add to module's declarations?

829


What does the ng stand for in angular?

748


Explain ddo in angularjs?

844


Can we create our own directives?

821