This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

ApplicationModule

npm Package @angular/core
Module import { ApplicationModule } from '@angular/core';
Source core/src/application_module.ts

Overview

      
      class ApplicationModule {
  constructor(appRef: ApplicationRef)
}
    

Description

This module includes the providers of @angular/core that are needed to bootstrap components via ApplicationRef.

Constructor

      
      constructor(appRef: ApplicationRef)
    

Annotations

      
      @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()]]
        },
    ]
})