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
Explain webpack?
Which is easier to learn react or angular?
How to find the index counter in ng-repeat angular js?
Is angular object oriented?
What is the use of ngif directive?
Why do we use angular?
What are the purpose of @ngmodule?
Explain bootstrapping in angularjs?
What do u mean by router?
What are event emitters and how it works in angular 2?
Explain ng-include directive.
Why angular is needed?
What an angular 5 component made of?
What is the difference between onnginit() and constructor() of a component?
What are directive words?