Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DynamicModule

Interface defining a Dynamic Module.

see

Dynamic Modules

publicapi

Hierarchy

Index

Properties

Optional controllers

controllers: Type<any>[]

Optional list of controllers defined in this module which have to be instantiated.

Optional exports

exports: Array<DynamicModule | Promise<DynamicModule> | string | symbol | Provider | ForwardReference | Abstract<any> | Function>

Optional list of the subset of providers that are provided by this module and should be available in other modules which import this module.

Optional global

global: boolean

When "true", makes a module global-scoped.

Once imported into any module, a global-scoped module will be visible in all modules. Thereafter, modules that wish to inject a service exported from a global module do not need to import the provider module.

default

false

Optional imports

imports: Array<Type<any> | DynamicModule | Promise<DynamicModule> | ForwardReference>

Optional list of imported modules that export the providers which are required in this module.

module

module: Type<any>

A module reference

Optional providers

providers: Provider[]

Optional list of providers that will be instantiated by the Nest injector and that may be shared at least across this module.

Generated using TypeDoc