Jan 15 in Angular
Q: What is the difference between a service() and a factory()?

1 Answer

Jan 15

A service() in Angular is a function that is used for the business layer of the application. It operates as a constructor function and is invoked once at the runtime using the ‘new’ keyword. Whereas factory() is a function which works similar to the service() but is much more powerful and flexible. factory() are design patterns which help in creating Objects.

Click here to read more about Angular JS
Click here to read more about Insurance

Related questions

Jan 27 in JAVA
Jan 6 in Angular
Jan 6 in Angular