Register a constant service, such as a string, a number, an array, an object or a function, with the $injector. Unlike value it can be injected into a module configuration function (see config) and it cannot be overridden by an Angular decorator.
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 directive
The name of the directive.
An object with a $get property that defines how the service is created.
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
$provideservice to define services, factories, constants, values, decorators, etc.