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 is @inputs in angular 2?
What is @outputs in angular?
Explain how $scope.$Apply() works
How to use angular js?
What is an eventemitter?
Can I use two ng class?
What is in node js?
What are the advantages of using angular.js framework?
When will ngoninit be called?
List some of the built-in validators in angularjs?
Why do we need custom directives in angular?
What are angularjs modules?
What are different ways to create service in AngularJS?
Is angular or react easier to learn?
What are typings in angular?