AngularJS Question: Download Questions PDF
What is factory method in angular.js?
![AngularJS Interview Answer AngularJS Interview Question](https://globalguideline.com/public/images/interview/13.png)
Answer:
For creating the directive, factory method is used. It is invoked only once, when compiler matches the directive for the first time. By using $injector.invoke the factory method is invoked.
Download AngularJS Interview Questions And Answers
PDF
Previous Question | Next Question |
What is Link function in AngularJS? | What are the styling form that ngModel adds to CSS classes? |