Returns an array of service names which the function is requesting for injection.
Returns an array of service names which the function is requesting for injection. This API is used by the injector to determine which services need to be injected into the function when the function is invoked. There are three ways in which the function can be annotated with the needed dependencies.
Function for which dependent service names need to be retrieved as described above.
Disallow argument name annotation inference (default: false).
Return an instance of the service.
Return an instance of the service.
the wrapped object type
The name of the instance to retrieve.
An optional string to provide the origin of the function call for error messages.
The instance.
Allows the user to query if the particular service exists.
Allows the user to query if the particular service exists.
Name of the service to query.
true if injector has given service.
Create a new instance of JS type.
Create a new instance of JS type. The method takes a constructor function, invokes the new operator, and supplies all of the arguments to the constructor function as specified by the constructor annotation.
Optional object. If preset then any argument names are read from this object first, before the $injector is consulted.
new instance of Type.
Invoke the method and supply the method arguments from the $injector.
Invoke the method and supply the method arguments from the $injector.
The injectable function to invoke. Function parameters are injected according to the $inject Annotation rules.
The this for the invoked method.
Optional object. If preset then any argument names are read from this object first, before the $injector is consulted.
the value returned by the invoked fn function.
Injector Service - is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules.
https://docs.angularjs.org/api/auto/service/$injector