Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit e766f66

Browse files
stephenjfoxwardbell
authored andcommitted
docs(http): Small typo fix in sentence reference to items: Observable
Ward tacked on router: ngDestroy -> ngOnDestroy closes #1690
1 parent e4c5fe3 commit e766f66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/docs/ts/latest/guide/router.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ h4#snapshot <i>Snapshot</i>: the no-observable alternative
739739
be re-used. We'll always re-create the component each time we navigate to it.
740740

741741
The router offers a *Snapshot* alternative that gives us the initial value of the route parameters.
742-
We don't need to subscribe. We don't have to unsubscribe in `ngDestroy`.
742+
We don't need to subscribe. We don't have to unsubscribe in `ngOnDestroy`.
743743
It's much simpler to write and read:
744744
+makeExample('router/ts/app/heroes/hero-detail.component.2.ts','snapshot')(format=".")
745745
.l-sub-section

public/docs/ts/latest/guide/server-communication.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ block wikipedia-jsonp+
540540
The component presents an `<input>` element *search box* to gather search terms from the user.
541541
and calls a `search(term)` method after each `keyup` event.
542542

543-
The `search(term)` method delegates to our `WikipediaService` which returns an observable array of string results (`Observable<string[]`).
543+
The `search(term)` method delegates to our `WikipediaService` which returns an observable array of string results (`Observable<string[]>`).
544544
Instead of subscribing to the observable inside the component as we did in the `HeroListComponent`,
545545
we forward the observable result to the template (via `items`) where the [async pipe](pipes.html#async-pipe)
546546
in the `ngFor` handles the subscription.

0 commit comments

Comments
 (0)