@@ -371,14 +371,14 @@ In TypeScript:
371371import {platform, Provider, APP_INITIALIZER, Injector} from 'angular2/core';
372372import {
373373 WORKER_RENDER_PLATFORM,
374- WORKER_RENDER_APP_COMMON ,
374+ WORKER_RENDER_APPLICATION_COMMON ,
375375 initializeGenericWorkerRenderer,
376376 MessageBus
377377} from 'angular2/platform/worker_render';
378378
379379var bus = new MyAwesomeMessageBus();
380380platform([WORKER_RENDER_PLATFORM])
381- .application([WORKER_RENDER_APP_COMMON , new Provider(MessageBus, {useValue: bus}),
381+ .application([WORKER_RENDER_APPLICATION_COMMON , new Provider(MessageBus, {useValue: bus}),
382382 new Provider(APP_INITIALIZER, {
383383 useFactory: (injector) => () => initializeGenericWorkerRenderer(injector),
384384 deps: [Injector],
@@ -419,7 +419,7 @@ import 'package:angular2/platform/worker_render.dart';
419419main() {
420420 var bus = new MyAwesomeMessageBus();
421421 platform([WORKER_RENDER_PLATFORM])
422- .application([WORKER_RENDER_APP_COMMON , new Provider(MessageBus, useValue: bus),
422+ .application([WORKER_RENDER_APPLICATION_COMMON , new Provider(MessageBus, useValue: bus),
423423 new Provider(APP_INITIALIZER,
424424 useFactory: (injector) => () => initializeGenericWorkerRenderer(injector),
425425 deps: [Injector],
@@ -456,9 +456,9 @@ void initAppThread(NgZone zone) {
456456 */
457457}
458458` ` `
459- Notice how we use the ` WORKER_RENDER_APP_COMMON ` providers instead of the ` WORKER_RENDER_APP ` providers on the render thread .
460- This is because the ` WORKER_RENDER_APP ` providers include an application initializer that starts a new WebWorker / Isolate .
461- The ` WORKER_RENDER_APP_COMMON ` providers make no assumption about where your application code lives .
459+ Notice how we use the ` WORKER_RENDER_APPLICTION_COMMON ` providers instead of the ` WORKER_RENDER_APPLICATION ` providers on the render thread .
460+ This is because the ` WORKER_RENDER_APPLICATION ` providers include an application initializer that starts a new WebWorker / Isolate .
461+ The ` WORKER_RENDER_APPLICATION_COMMON ` providers make no assumption about where your application code lives .
462462However , we now need to provide our own app initializer. At the very least this initializer needs to call ` initializeGenericWorkerRenderer ` .
463463
464464## MessageBroker
0 commit comments