fix(webworkers): rename all web worker apis with "render" to "ui"
"render" is gramatically incorrect and confusing to developers who used this api. Since webworker apis were exposed only in master, renaming these before the rc2 release is not a breaking change
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import {ImageDemo} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(ImageDemo);
|
||||
bootstrapWorkerApp(ImageDemo);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerUi} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
bootstrapWorkerUi("loader.js");
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {InputCmp} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(InputCmp);
|
||||
bootstrapWorkerApp(InputCmp);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerUi} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
bootstrapWorkerUi("loader.js");
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {HelloCmp} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(HelloCmp);
|
||||
bootstrapWorkerApp(HelloCmp);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerUi} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
bootstrapWorkerUi("loader.js");
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
|
||||
import {App} from './index_common';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(App);
|
||||
bootstrapWorkerApp(App);
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
import {ApplicationRef} from '@angular/core';
|
||||
import {UiArguments, FnArg, PRIMITIVE, ClientMessageBrokerFactory} from '@angular/platform-browser';
|
||||
import {bootstrapRender} from "@angular/platform-browser-dynamic";
|
||||
import {bootstrapWorkerUi} from "@angular/platform-browser-dynamic";
|
||||
|
||||
const ECHO_CHANNEL = "ECHO";
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js").then((ref) => afterBootstrap(ref));
|
||||
bootstrapWorkerUi("loader.js").then((ref) => afterBootstrap(ref));
|
||||
}
|
||||
|
||||
function afterBootstrap(ref: ApplicationRef) {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import {ROUTER_PROVIDERS} from '@angular/router-deprecated';
|
||||
import {WORKER_APP_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
|
||||
|
||||
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
|
||||
import {App} from './index_common';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(App, [
|
||||
bootstrapWorkerApp(App, [
|
||||
ROUTER_PROVIDERS,
|
||||
WORKER_APP_LOCATION_PROVIDERS,
|
||||
{provide: LocationStrategy, useClass: HashLocationStrategy}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {WORKER_RENDER_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
import {bootstrapRender} from "@angular/platform-browser-dynamic";
|
||||
import {WORKER_UI_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
import {bootstrapWorkerUi} from "@angular/platform-browser-dynamic";
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js", WORKER_RENDER_LOCATION_PROVIDERS);
|
||||
bootstrapWorkerUi("loader.js", WORKER_UI_LOCATION_PROVIDERS);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {TodoApp} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(TodoApp);
|
||||
bootstrapWorkerApp(TodoApp);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapWorkerUi} from '@angular/platform-browser-dynamic';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
bootstrapWorkerUi("loader.js");
|
||||
}
|
||||
|
Reference in New Issue
Block a user