Use this method to register work which needs to be performed on module loading.
Execute this function on module load. Useful for service configuration.
Use this method to register work which needs to be performed on module loading.
Execute this function on module load. Useful for service configuration.
The $controller service is used by Angular to create new controllers.
This provider allows controller registration via the register method.
Controller name, or an object map of controllers where the keys are the names and the values are the constructors.
Controller constructor fn (optionally decorated with DI annotations in the array notation).
The $controller service is used by Angular to create new controllers.
This provider allows controller registration via the register method.
Controller name, or an object map of controllers where the keys are the names and the values are the constructors.
Register a service factory, which will be called to return the service instance. This is short for registering a service where its provider consists of only a $get property, which is the given service factory function. You should use $provide.factory(getFn) if you do not need to configure your service in a provider.
The name of the instance.
Register a service factory, which will be called to return the service instance. This is short for registering a service where its provider consists of only a $get property, which is the given service factory function. You should use $provide.factory(getFn) if you do not need to configure your service in a provider.
The name of the instance.
The $getFn for the instance creation. Internally this is a short hand for $provide.provider(name, {$get: $getFn}).
creating a resource service factory