WorkerAppModule
class
npm Package | @angular/platform-webworker |
---|---|
Module | import { WorkerAppModule } from '@angular/platform-webworker'; |
Source | platform-webworker/src/worker_app.ts |
Overview
class WorkerAppModule { }
Description
The ng module for the worker app side.
Annotations
@NgModule({
providers: [
BROWSER_SANITIZATION_PROVIDERS,
Serializer,
{ provide: DOCUMENT, useValue: null },
{ provide: ClientMessageBrokerFactory, useClass: ClientMessageBrokerFactory_ },
{ provide: ServiceMessageBrokerFactory, useClass: ServiceMessageBrokerFactory_ },
WebWorkerRendererFactory2,
{ provide: RendererFactory2, useExisting: WebWorkerRendererFactory2 },
{ provide: ON_WEB_WORKER, useValue: true },
RenderStore,
{ provide: ErrorHandler, useFactory: errorHandler, deps: [] },
{ provide: MessageBus, useFactory: createMessageBus, deps: [NgZone] },
{ provide: APP_INITIALIZER, useValue: setupWebWorker, multi: true },
],
exports: [
CommonModule,
ApplicationModule,
]
})
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/platform-webworker/WorkerAppModule