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 angular is doing with bazel compiler?

765


What is spa in angular?

739


What are directive behaviors?

707


What are the core differences between observables and promises?

770


What are the components?

766


What would be a good use case for having your own routing module?

716


What is @inputs in angular 2?

728


When should you use an attribute versus an element?

743


Explain the use of @injectable()?

814


What is hidden property in angular 2?

761


What are the concept of scope hierarchy?

774


In angular what is string interpolation?

799


What are the types of controller?

820


What is directives in angular?

752


What is ngroute?

806