How to create custom directives in AngularJS?



How to create custom directives in AngularJS?..

Answer / 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

More AngularJS Interview Questions

How do you use ng value?

0 Answers  


Explain the types of linking function?

0 Answers  


What is $log Service?

0 Answers  


How to delete a row in angular js?

0 Answers  


How AngularJS expressions are different from the JavaScript expressions?

1 Answers   Xoriant,






What is dependency injection and how does it work?

0 Answers  


Why angular is so popular?

0 Answers  


What is the difference between ng-model and ng-bind in angularjs?

0 Answers  


What is mobile angular ui?

0 Answers  


What is angulars performance like?

0 Answers  


What are AngularJS features? 15

0 Answers  


What is a function decorator?

0 Answers  


Categories