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

Commit 470426d

Browse files
committed
update _cache
1 parent c12d75a commit 470426d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

public/docs/ts/_cache/tutorial/toh-pt5.jade

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ block includes
99
- var _redirectTo = 'redirectTo'
1010

1111
:marked
12-
# Routing Around the App
13-
1412
We received new requirements for our Tour of Heroes application:
1513

1614
* Add a *Dashboard* view.

public/docs/ts/_cache/tutorial/toh-pt6.jade

+12-9
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ block includes
1212
- var _promise = _Promise.toLowerCase()
1313

1414
:marked
15-
# Getting and Saving Data
16-
1715
Our stakeholders appreciate our progress.
1816
Now they want to get the hero data from a server, let users add, edit, and delete heroes,
1917
and save these changes back to the server.
@@ -155,7 +153,7 @@ block get-heroes-details
155153
*Observables* are a powerful way to manage asynchronous data flows.
156154
We'll learn about [Observables](#observables) later in this chapter.
157155

158-
For *now* we get back on familiar ground by immediately by
156+
For *now* we get back on familiar ground by immediately
159157
converting that `Observable` to a `Promise` using the `toPromise` operator.
160158

161159
+makeExcerpt('app/hero.service.ts', 'to-promise', '')
@@ -219,7 +217,7 @@ block get-heroes-details
219217
Although we made significant *internal* changes to `getHeroes()`, the public signature did not change.
220218
We still return a !{_Promise}. We won't have to update any of the components that call `getHeroes()`.
221219

222-
Our stakeholders are thrilled with the added flexibility from the API integration.
220+
Our stakeholders are thrilled with the added flexibility from the API integration.
223221
Now they want the ability to create and delete heroes.
224222

225223
Let's see first what happens when we try to update a hero's details.
@@ -229,7 +227,7 @@ block get-heroes-details
229227
## Update hero details
230228

231229
We can edit a hero's name already in the hero detail view. Go ahead and try
232-
it. As we type, the hero name is updated in the view heading.
230+
it. As we type, the hero name is updated in the view heading.
233231
But when we hit the `Back` button, the changes are lost!
234232

235233
.l-sub-section
@@ -294,7 +292,11 @@ block get-heroes-details
294292
When the given name is non-blank, the handler delegates creation of the
295293
named hero to the hero service, and then adds the new hero to our !{_array}.
296294

297-
Go ahead, refresh the browser and create some new heroes!
295+
Finally, we implement the `create` method in the `HeroService` class.
296+
+makeExcerpt('app/hero.service.ts', 'create')
297+
298+
:marked
299+
Refresh the browser and create some new heroes!
298300

299301
.l-main-section
300302
:marked
@@ -344,6 +346,7 @@ block get-heroes-details
344346
:marked
345347
Refresh the browser and try the new delete functionality.
346348

349+
#observables
347350
:marked
348351
## !{_Observable}s
349352

@@ -510,7 +513,7 @@ block observable-transformers
510513
- var _declarations = _docsFor == 'dart' ? 'directives' : 'declarations'
511514
- var declFile = _docsFor == 'dart' ? 'app/dashboard.component.ts' : 'app/app.module.ts'
512515
:marked
513-
Finally, we import `HeroSearchComponent` from
516+
Finally, we import `HeroSearchComponent` from
514517
<span ngio-ex>hero-search.component.ts</span>
515518
and add it to the `!{_declarations}` !{_array}:
516519

@@ -532,7 +535,7 @@ figure.image-display
532535

533536
block filetree
534537
.filetree
535-
.file angular2-tour-of-heroes
538+
.file angular-tour-of-heroes
536539
.children
537540
.file app
538541
.children
@@ -577,7 +580,7 @@ block filetree
577580
- We configured an in-memory web API.
578581
- We learned how to use !{_Observable}s.
579582

580-
Here are the files we added or changed in this chapter.
583+
Here are the files we _added or changed_ in this chapter.
581584

582585
block file-summary
583586
+makeTabs(

0 commit comments

Comments
 (0)