Modules are collections of application configuration information for components: controllers, directives, filters, etc. They provide recipes for the injector to do the actual instantiation. A module itself has no behaviour but only state. A such, it acts as a data structure between the Angular instance and the injector service.

Since this is an internal structure that is exposed only via the Angular instance, it contains no validation of the items it receives. It is up to the instantiator on modules to do the actual validation.

Constructors

  • Parameters

    • name: string

      Name of the module

    • requires: string[]

      List of modules which the injector will load before the current module

    • OptionalconfigFn: Function

    Returns NgModule

Properties

configBlocks: any[][]
infoState: any
invokeQueue: any[][]

Holds a collection of tasks, required to instantiate an angular component

name: string
requires: string[]

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

runBlocks: Function[]

Methods