How to use @angular/platform-webworker - 8 common examples

To help you get started, we’ve selected a few @angular/platform-webworker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OmicsDI / ddi-web-app / src / main.ts View on Github external
import {enableProdMode} from '@angular/core';
import {environment} from './environments/environment';
import {bootstrapWorkerUi, WORKER_UI_LOCATION_PROVIDERS} from '@angular/platform-webworker';

if (environment.production) {
    enableProdMode();
}

// document.addEventListener('DOMContentLoaded', () => {
//
// });
bootstrapWorkerUi('webworker.bundle.js', WORKER_UI_LOCATION_PROVIDERS);
github angular / angular / modules / playground / src / web_workers / animations / index.ts View on Github external
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {bootstrapWorkerUi} from '@angular/platform-webworker';

bootstrapWorkerUi('loader.js');
github angular / angular / modules / playground / src / web_workers / router / index.ts View on Github external
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {WORKER_UI_LOCATION_PROVIDERS, bootstrapWorkerUi} from '@angular/platform-webworker';

bootstrapWorkerUi('loader.js', WORKER_UI_LOCATION_PROVIDERS);
github angular / angular / modules / playground / src / web_workers / input / index.ts View on Github external
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {bootstrapWorkerUi} from '@angular/platform-webworker';

bootstrapWorkerUi('loader.js');
github angular / angular / modules / playground / src / web_workers / kitchen_sink / index.ts View on Github external
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {bootstrapWorkerUi} from '@angular/platform-webworker';

bootstrapWorkerUi('loader.js');
github angular / angular / modules / playground / src / web_workers / todo / index.ts View on Github external
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {bootstrapWorkerUi} from '@angular/platform-webworker';

bootstrapWorkerUi('loader.js');
github angular / angular / modules / playground / src / web_workers / images / index.ts View on Github external
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

import {bootstrapWorkerUi} from '@angular/platform-webworker';

bootstrapWorkerUi('loader.js');
github angular / angular / modules / playground / src / web_workers / message_broker / index_common.ts View on Github external
constructor(private _serviceBrokerFactory: ServiceMessageBrokerFactory) {
    const broker = _serviceBrokerFactory.createMessageBroker(ECHO_CHANNEL, false);
    broker.registerMethod(
        'echo', [SerializerTypes.PRIMITIVE], this._echo, SerializerTypes.PRIMITIVE);
  }

@angular/platform-webworker

Angular - library for using Angular in a web browser with web workers

MIT
Latest version published 4 years ago

Package Health Score

73 / 100
Full package analysis

Similar packages