Q&A
Ask and answer questions to make information more available to wider audiences.
Victor Sifford @siffordvictor95   29, Mar 2023 12:00 AM
Factory function in AngularJS
What is the factory function in AngularJS?
answers 1
 
Answer 1
Ryan Burden @ryanburden70   29, Mar 2023 05:50 PM
For creating the directive, factory method is used. It is invoked only once when the compiler matches the directive for the first time. By using $injector.invoke the factory method is invoked.