What are metadata properties of @NgModule?
The @Module takes a metadata object that tells Angular how to compile and launch the application.
The important metadata properties of Module's are given as follows –
providers
imports
declarations
exports
schemas
entryComponents
bootstrap
id
@NgModule({
providers?: Provider[]
declarations?: Array | any[]>
imports?: Array | ModuleWithProviders | any[]>
exports?: Array | any[]>
entryComponents?: Array | any[]>
bootstrap?: Array | any[]>
schemas?: Array
id?: string
})
The @NgModule metadata has been categorized into three categories.
Static
Runtime
Compos ability/Grouping