Angular · Decorator
NgModule
NgModule groups Angular declarations and configuration. It can declare components, import and export modules, register providers, bootstrap components, and define schemas.
Last updated
Syntax
@NgModule({ providers?: (Provider | EnvironmentProviders)[]; declarations?: (any[] | Type<any>)[]; imports?: (any[] | Type<any> | ModuleWithProviders<{}>)[]; exports?: (any[] | Type<any>)[]; bootstrap?: (any[] | Type<any>)[]; schemas?: (any[] | SchemaMetadata)[]; id?: string; jit?: true; })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
CommonModuleModuleWithProvidersSchemaMetadatagetNgModuleByIdProviderComponentDirectivePipe