auto

Implicit module which gets automatically added to each $injector. Module Components Service Name Description $injector $injector is used to retrieve object instances as defined by provider, instantiate types, invoke methods, and load modules. $provide The $provide service has a number of methods for registering components with the $injector. Many of these functions are also exposed on angular.Module.

angular.version

object in module ng An object that contains information about the current AngularJS version. This object has the following properties: full â {string} â Full version string, such as "0.9.18". major â {number} â Major version number, such as "0". minor â {number} â Minor version number, such as "9". dot â {number} â Dot version number, such as "18". codeName â {string} â Code name of the release, such as "jiggling-armfat".

angular.toJson

function in module ng Serializes input into a JSON-formatted string. Properties with leading $$ characters will be stripped since angular uses this notation internally. Usage angular.toJson(obj, pretty); Arguments Param Type Details obj ObjectArrayDatestringnumber Input to be serialized into JSON. pretty (optional) booleannumber If set to true, the JSON output will contain newlines and whitespace. If set to an integer, the JSON output will contain that many spaces per indentat

angular.reloadWithDebugInfo

function in module ng Use this function to reload the current application with debug information turned on. This takes precedence over a call to $compileProvider.debugInfoEnabled(false). See $compileProvider for more.

angular.noop

function in module ng A function that performs no operations. This function can be useful when writing code in the functional style. function foo(callback) { var result = calculateResult(); (callback || angular.noop)(result); } Usage angular.noop();

angular.Module.value()

value(name, object); See $provide.value(). Parameters Param Type Details name string service name object * Service instance object.

angular.Module.service()

service(name, constructor); See $provide.service(). Parameters Param Type Details name string service name constructor Function A constructor function that will be instantiated.

angular.Module.run()

run(initializationFn); Use this method to register work which should be performed when the injector is done loading all modules. Parameters Param Type Details initializationFn Function Execute this function after injector creation. Useful for application initialization.

angular.Module.requires

requires Holds the list of modules which the injector will load before the current module is loaded.

angular.Module.provider()

provider(name, providerType); See $provide.provider(). Parameters Param Type Details name string service name providerType Function Construction function for creating new instance of the service.