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 do I have to do to trick the browser into doing what I want?
What is injection in angular?
Why we use routing in angularjs?
What is the role of $routeprovider in angularjs?
How to perform animation in angular?
What is a view in angular?
What are the differences between service and factory methods?
What are angular directives?
Can you use bootstrap with angular?
What is the syntax for creating a new date object?
What is currency filter? What are the two ways to use currency filters?
What is the use of services in angular 4?
In how many ways the Data Binding can be done?
How to write if else and then conditions in angular 4?
What is linking function?