service(name, constructor); Register a service constructor, which will be invoked with new to create the
provider(name, provider); Register a provider function with the $injector. Provider functions are constructor functions
Implicit module which gets automatically added to each $injector. Module Components
has(name); Allows the user to query if the particular service exists. Parameters
Name Description $injector $injector is used to retrieve object instances as defined
get(name, [caller]); Return an instance of the service. Parameters
annotate(fn, [strictDi]); Returns an array of service names which the function is requesting for injection. This API is used by the
instantiate(Type, [locals]); Create a new instance of JS type. The method takes a constructor function, invokes the new operator, and
constant(name, value); Register a constant service with the $injector, such as a string, a number, an array, an object
value(name, value); Register a value service with the $injector, such as a string, a number, an array, an object or
Page 1 of 2