X Tutup
Skip to content

Commit 6a4a8a6

Browse files
committed
docs(WebWorker): Fix typos in WebWorker docs
1 parent 7ec4da4 commit 6a4a8a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/angular2/docs/web_workers/web_workers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To bootstrap Hello World in a WebWorker we do the following in TypeScript
4040
```TypeScript
4141
// index.js
4242
import {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({...})
218218
export 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
398398
To 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
401401
MessageBrokers in an application. For a more complete example, check out the `WebWorkerRenderer` and
402402
`MessageBasedRenderer` inside the Angular WebWorker code.
403403

0 commit comments

Comments
 (0)
X Tutup