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 does SPA (Single page application) mean?
How to enable html5 mode in angular 1.x?
Why should I learn angular?
What is react vs angular?
What is the difference between angular 4 and angular 7?
What is @viewchild?
What are “streams” in node.js? Explain the different types of streams present in node.js?
Does AngularJS have dependency on jQuery?
How will you create a custom service?
What is 'transfer data to and from the ui' in angularjs?
What is token based authentication in angular 4?
What is transpiling?
How to initialize a select box with options on page load in angular js?
What are angular global apis?
What are templates in angular?