File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/angular2/docs/web_workers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ To bootstrap Hello World in a WebWorker we do the following in TypeScript
4040``` TypeScript
4141// index.js
4242import {bootstrap } from " angular2/web_worker/ui" ;
43- bootstrap (loader .js );
43+ bootstrap (" loader.js" );
4444```
4545``` JavaScript
4646// loader.js
@@ -217,7 +217,7 @@ import {MessageBus} from 'angular2/web_worker/worker';
217217@View ({... })
218218export class MyComponent {
219219 constructor (bus : MessageBus ) {
220- bus .initChannel (" My CustomChannel " );
220+ bus .initChannel (" My Custom Channel " );
221221 }
222222}
223223```
@@ -396,8 +396,8 @@ an operation be performed and may want to receive the result.
396396
397397### Using the MessageBroker In Your Application
398398To use MessageBrokers in your application you must initialize both a ` ClientMessageBroker ` and a
399- ` ServiceMessageBroker ` on the same channel. You can then register methods that the ` ServiceMessageBroker ` should
400- listen the instruct the ` ClientMessageBroker ` to run those methods. Below is a lightweight example of using
399+ ` ServiceMessageBroker ` on the same channel. You can then register methods with the ` ServiceMessageBroker ` and
400+ instruct the ` ClientMessageBroker ` to run those methods. Below is a lightweight example of using
401401MessageBrokers in an application. For a more complete example, check out the ` WebWorkerRenderer ` and
402402` MessageBasedRenderer ` inside the Angular WebWorker code.
403403
You can’t perform that action at this time.
0 commit comments