Register a constant value (available during config).
The name of the constant.
The constant value.
Register a decorator function to modify or replace an existing service.
The name of the service to decorate.
A function that takes $delegate
and returns a decorated service.
Register a factory function to create a service.
The name of the service.
A function (or annotated array) that returns the service instance.
Register a service provider.
The name of the service.
An object with a $get
property that defines how the service is created.
Register a constructor function to create a service.
The name of the service.
A class or function to instantiate.
Register a fixed value as a service.
The name of the service.
The value to use.
The API for registering different types of providers with the injector.
This interface is used within AngularTS's
$provide
service to define services, factories, constants, values, decorators, etc.