W3cubDocs

/Angular 10

WorkerAppModule

ngmodule deprecated

The ng module for the worker app side.

Deprecated: platform-webworker is deprecated in Angular and will be removed in a future version of Angular

class WorkerAppModule {
}

Providers

Provider
BROWSER_SANITIZATION_PROVIDERS
{ provide: INJECTOR_SCOPE, useValue: 'root' }
Serializer
{ provide: DOCUMENT, useValue: null }
ClientMessageBrokerFactory
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 }
{ provide: ViewportScroller, useClass: NullViewportScroller, deps: [] }

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/platform-webworker/WorkerAppModule