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
What angular is doing with bazel compiler?
What is spa in angular?
What are directive behaviors?
What are the core differences between observables and promises?
What are the components?
What would be a good use case for having your own routing module?
What is @inputs in angular 2?
When should you use an attribute versus an element?
Explain the use of @injectable()?
What is hidden property in angular 2?
What are the concept of scope hierarchy?
In angular what is string interpolation?
What are the types of controller?
What is directives in angular?
What is ngroute?