in Angular by
What is the difference between a provider, a service and a factory in Angular?

1 Answer

0 votes
by

Provider Service Factory

A provider is a method using which you can pass a portion of your application into app.config A service is a method that is used to create a service instantiated with the ‘new’ keyword. It is a method that is used for creating and configuring services. Here you create an object, add properties to it and then return the same object and pass the factory method into your controller.

Related questions

0 votes
asked Jan 15, 2020 in Angular by rahuljain1
+1 vote
asked Jan 15, 2020 in Angular by rahuljain1
0 votes
asked Feb 15, 2020 in Angular by matthenary
...