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 scope in angular?
What is $rootscope in angularjs? How is it different from the scope?
What is route guard in angular?
Is angular harder than react?
Does google use angular?
How can we setting up angular 2 application?
What is impure pipe?
What variables are used with ng-repeat?
What is aot in angular?
How does angular application improve performance?
What is key value pipe in angular 7?
How do you disable a button depending on a checkbox’s state?
What is deep linking in angular js?
What is routes and route properties?
What is ng-cloak directive and why we use?