Interface IModule

Index

Properties

Methods

Properties

public name: string

public requires: Array<string>

Methods

public animation(name: string, animationFactory: Function): IModule

Parameters

  • name: string
  • animationFactory: Function

Returns

IModule

public animation(name: string, inlineAnnotatedFunction: Array<any>): IModule

Parameters

  • name: string
  • inlineAnnotatedFunction: Array<any>

Returns

IModule

public animation(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public config(configFn: Function): IModule

Use this method to register work which needs to be performed on module loading.

Parameters

  • configFn: Function

    Execute this function on module load. Useful for service configuration.

Returns

IModule

public config(inlineAnnotatedFunction: Array<any>): IModule

Use this method to register work which needs to be performed on module loading.

Parameters

  • inlineAnnotatedFunction: Array<any>

    Execute this function on module load. Useful for service configuration.

Returns

IModule

public constant(name: string, value: any): IModule

Parameters

  • name: string
  • value: any

Returns

IModule

public constant(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public controller(name: string, controllerConstructor: Function): IModule

The $controller service is used by Angular to create new controllers.

This provider allows controller registration via the register method.

Parameters

  • name: string

    Controller name, or an object map of controllers where the keys are the names and the values are the constructors.

  • controllerConstructor: Function

    Controller constructor fn (optionally decorated with DI annotations in the array notation).

Returns

IModule

public controller(name: string, inlineAnnotatedConstructor: Array<any>): IModule

The $controller service is used by Angular to create new controllers.

This provider allows controller registration via the register method.

Parameters

  • name: string

    Controller name, or an object map of controllers where the keys are the names and the values are the constructors.

  • inlineAnnotatedConstructor: Array<any>

Returns

IModule

public controller(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public directive(name: string, directiveFactory: Function): IModule

Parameters

  • name: string
  • directiveFactory: Function

Returns

IModule

public directive(name: string, inlineAnnotatedFunction: Array<any>): IModule

Parameters

  • name: string
  • inlineAnnotatedFunction: Array<any>

Returns

IModule

public directive(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public factory(name: string, serviceFactoryFunction: Function): IModule

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.

Parameters

  • name: string

    The name of the instance.

  • serviceFactoryFunction: Function

Returns

IModule

public factory(name: string, inlineAnnotatedFunction: Array<any>): IModule

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.

Parameters

  • name: string

    The name of the instance.

  • inlineAnnotatedFunction: Array<any>

    The $getFn for the instance creation. Internally this is a short hand for $provide.provider(name, {$get: $getFn}).

Returns

IModule

public factory(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public filter(name: string, filterFactoryFunction: Function): IModule

Parameters

  • name: string
  • filterFactoryFunction: Function

Returns

IModule

public filter(name: string, inlineAnnotatedFunction: Array<any>): IModule

Parameters

  • name: string
  • inlineAnnotatedFunction: Array<any>

Returns

IModule

public filter(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public provider(name: string, serviceProviderConstructor: Function): IModule

Parameters

  • name: string
  • serviceProviderConstructor: Function

Returns

IModule

public provider(name: string, inlineAnnotatedConstructor: Array<any>): IModule

Parameters

  • name: string
  • inlineAnnotatedConstructor: Array<any>

Returns

IModule

public provider(name: string, providerObject: IProvider): IModule

Parameters

Returns

IModule

public provider(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public run(initializationFunction: Function): IModule

Parameters

  • initializationFunction: Function

Returns

IModule

public run(inlineAnnotatedFunction: Array<any>): IModule

Parameters

  • inlineAnnotatedFunction: Array<any>

Returns

IModule

public service(name: string, serviceConstructor: Function): IModule

Parameters

  • name: string
  • serviceConstructor: Function

Returns

IModule

public service(name: string, inlineAnnotatedConstructor: Array<any>): IModule

Parameters

  • name: string
  • inlineAnnotatedConstructor: Array<any>

Returns

IModule

public service(object: Object): IModule

Parameters

  • object: Object

Returns

IModule

public value(name: string, value: any): IModule

Parameters

  • name: string
  • value: any

Returns

IModule

public value(object: Object): IModule

Parameters

  • object: Object

Returns

IModule