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...

How to create custom directives in AngularJS?

Answer Posted / pankajbisane

Custom directives are used in AngularJS to extend the functionality of HTML. Custom directives are defined using "directive" function. A custom directive simply replaces the element for which it is activated. AngularJS application during bootstrap finds the matching elements and do one time activity using its compile() method of the custom directive then process the element using link() method of the custom directive based on the scope of the directive

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do I have to do to trick the browser into doing what I want?

787


What is injection in angular?

775


Why we use routing in angularjs?

721


What is the role of $routeprovider in angularjs?

946


How to perform animation in angular?

799


What is a view in angular?

712


What are the differences between service and factory methods?

835


What are angular directives?

774


Can you use bootstrap with angular?

767


What is the syntax for creating a new date object?

766


What is currency filter? What are the two ways to use currency filters?

742


What is the use of services in angular 4?

735


In how many ways the Data Binding can be done?

855


How to write if else and then conditions in angular 4?

841


What is linking function?

780