+1 vote
in Angular by
What is a provider in Angular?

1 Answer

0 votes
by

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
asked Sep 20, 2023 in Angular by DavidAnderson
0 votes
asked Dec 10, 2023 in Angular by DavidAnderson
...