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
How are the services injected to your application?
What is ngClass directive in AngularJS?
Which is the core module in angularjs?
What are the lifecycle hooks for components and directives?
What are differences between components and directives?
How do you use singleton pattern?
What does ‘ng-serve’ do?
Explain class and inheritance in js?
Explain filter filter?
What is the use of decorators in angular?
What is the difference between annotation and decorator in angular 2?
What are the differences between $resource and $http?
How will you implement internationalization in angularjs?
What is singleton pattern? How does angular use it?
Is wordpress a framework?