• Overview
@angular/core

NgModule

decorator

Decorator that marks a class as an NgModule and supplies configuration metadata.

API

@NgModule({  providers?: (Provider | EnvironmentProviders)[] | undefined;  declarations?: (any[] | Type<any>)[] | undefined;  imports?: (any[] | Type<any> | ModuleWithProviders<{}>)[] | undefined;  exports?: (any[] | Type<any>)[] | undefined;  bootstrap?: (any[] | Type<any>)[] | undefined;  schemas?: (any[] | SchemaMetadata)[] | undefined;  id?: string | undefined;  jit?: true | undefined; })
Jump to details