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

@angular/platform-webworker

Entry points

Primary

@angular/platform-webworker

Primary entry point exports

NgModules

WorkerAppModule

The ng module for the worker app side.

Classes

FnArg
MessageBus

Message Bus is a low level API used to communicate between the UI and the background. Communication is based on a channel abstraction. Messages published in a given channel to one MessageBusSink are received on the same channel by the corresponding MessageBusSource.

UiArguments

Functions

bootstrapWorkerUi

Bootstraps the worker ui.

Structures

ClientMessageBroker
ClientMessageBrokerFactory
MessageBusSink
MessageBusSource
ReceivedMessage
SerializerTypes
ServiceMessageBroker

Helper class for UIComponents that allows components to register methods. If a registered method message is received from the broker on the worker, the UIMessageBroker deserializes its arguments and calls the registered method. If that method returns a promise, the UIMessageBroker returns the result to the worker.

ServiceMessageBrokerFactory

Types

WORKER_APP_LOCATION_PROVIDERS

The PlatformLocation providers that should be added when the Location is used in a worker context.

WORKER_UI_LOCATION_PROVIDERS

A list of Providers. To use the router in a Worker enabled application you must include these providers when setting up the render thread.

platformWorkerApp
platformWorkerUi