+1 vote
in Angular by (6.0k points)
What is a provider in Angular?

1 Answer

0 votes
by (30.5k points)

A provider is a configurable service in Angular. It is an instruction to the Dependency Injection system that provides information about the way to obtain a value for a dependency. It is an object that has a $get() method which is called to create a new instance of a service. A Provider can also contain additional methods and uses $provide in order to register new providers.

Related questions

0 votes