What is factory method in angular.js?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online AngularJS Job Interview Questions And Answers