Select from following answers:- The factory method is use to create the service
- It generates the facts and figures
- It calculates the factorial of a number
- The factory method is use to initialize the values
- All Above
The factory method is use to create the service. It's syntax is
module.factory( 'factoryName', function );
In general, Services are JavaScript 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.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator