Creates an inject function that can be used for dependency injection.
angular.injector([providerScope][, providers][, cache]);
providerScope(optional={}) – {Object} –
provider's this
providers(optional=angular.service) – {Object.<string, function()>} –
Map of provider (factory) function.
cache(optional={}) – {Object.<string, function()>} –
Place where instances are saved for reuse. Can
also be used to override services speciafied by providers
(useful in tests).
{function()}
– Injector function.