WorkerAppModule

The ng module for the worker app side.

class WorkerAppModule { }

注解

@NgModule({ providers: [ BROWSER_SANITIZATION_PROVIDERS, 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: [] }, ], exports: [ CommonModule, ApplicationModule, ] })