linkApplicationModule
npm Package | @angular/core |
---|---|
Module | import { ApplicationModule } from '@angular/core'; |
Source | core/src/application_module.ts |
linkOverview
class ApplicationModule {
constructor(appRef: ApplicationRef)
}
linkDescription
This module includes the providers of @angular/core that are needed
to bootstrap components via ApplicationRef
.
linkConstructor
constructor(appRef: ApplicationRef)
linkAnnotations
@NgModule({
providers: [
ApplicationRef,
ApplicationInitStatus,
Compiler,
APP_ID_RANDOM_PROVIDER,
{ provide: IterableDiffers, useFactory: _iterableDiffersFactory },
{ provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory },
{
provide: LOCALE_ID,
useFactory: _localeFactory,
deps: [[new Inject(LOCALE_ID), new Optional(), new SkipSelf()]]
},
]
})