AngularJS module interface for registering components, services, providers, etc.

interface Module {
    component: ((arg0: string, arg1: any) => Module);
    config: ((arg0: Function) => Module);
    constant: ((arg0: string, arg1: any) => Module);
    controller: ((arg0: string, arg1: Injectable<T>) => Module);
    decorator: ((arg0: string, arg1: Injectable<T>) => Module);
    directive: ((arg0: string, arg1: Injectable<T>) => Module);
    factory: ((arg0: string, arg1: Injectable<T>) => Module);
    filter: ((arg0: string, arg1: Injectable<T>) => Module);
    name: string;
    provider: ((arg0: string, arg1: Function) => Module);
    requires: string[];
    run: ((arg0: Injectable<T>) => Module);
    service: ((arg0: string, arg1: Injectable<T>) => Module);
    value: ((arg0: string, arg1: any) => Module);
}

Properties

component: ((arg0: string, arg1: any) => Module)

Use this method to register a component.

config: ((arg0: Function) => Module)

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

constant: ((arg0: string, arg1: any) => Module)

Register a constant service with the $injector.

controller: ((arg0: string, arg1: Injectable<T>) => Module)

Register a controller with the $controller service.

decorator: ((arg0: string, arg1: Injectable<T>) => Module)

Register a service decorator with the $injector.

directive: ((arg0: string, arg1: Injectable<T>) => Module)

Register a directive with the compiler.

factory: ((arg0: string, arg1: Injectable<T>) => Module)

Register a service factory with the $injector.

filter: ((arg0: string, arg1: Injectable<T>) => Module)

Register a filter service.

name: string

The name of the AngularJS module.

provider: ((arg0: string, arg1: Function) => Module)

Register a provider service factory.

requires: string[]

Array of module names that this module depends on.

run: ((arg0: Injectable<T>) => Module)

Register code to be run during module loading.

service: ((arg0: string, arg1: Injectable<T>) => Module)

Register a service constructor.

value: ((arg0: string, arg1: any) => Module)

Register a value service with the $injector.