What is factory method in AngularJS ?

What is factory method in AngularJS ? Correct Answer It is used to create the service

In general, Services are Javscript functions and are responsible to do a specific tasks. Factories implements module pattern in which we use a factory method to generate an object which is use for building models.

It's syntax ismodule.factory('factoryName', function);

Related Questions