What are metadata properties of @NgModule?

866    Asked by SonamSingh in Python , Asked on Jan 5, 2020
Answered by Sonam Singh

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




Your Answer

Interviews

Parent Categories