factory
( service in module AUTO
)
A short hand for configuring services if only $get method is required.
name – {string} –
The name of the instance.
$getFn – {function()} –
The $getFn for the instance creation. Internally this is a short hand for
$provide.provider(name, {$get: $getFn}) .
{Object}
– registered provider instance