1
Q:
A) It generates the facts and figures | B) It is used to create the service |
C) It is used to calculate the factorial of a number | D) All the above |
Answer: B) It is used to create the service
Explanation:
Explanation:
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 is
module.factory('factoryName', function);