NgModule
Decorator that marks a class as an NgModule and supplies configuration metadata.
Option | Description |
---|---|
providers?
|
The set of injectable objects that are available in the injector of this module. |
declarations?
|
The set of components, directives, and pipes (declarables) that belong to this module. |
imports?
|
The set of NgModules whose exported declarables are available to templates in this module. |
exports?
|
The set of components, directives, and pipes declared in this NgModule that can be used in the template of any component that is part of an NgModule that imports this NgModule. Exported declarations are the module's public API. |
bootstrap?
|
The set of components that are bootstrapped when this module is bootstrapped. |
schemas?
|
The set of schemas that declare elements to be allowed in the NgModule. Elements and properties that are neither Angular components nor directives must be declared in a schema. |
id?
|
A name or path that uniquely identifies this NgModule in |
jit?
|
When present, this module is ignored by the AOT compiler.
It remains in distributed code, and the JIT compiler attempts to compile it
at run time, in the browser.
To ensure the correct behavior, the app must import |