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

Commit 6680acc

Browse files
authored
docs(toh): avoid dup header title (#2796)
* remove redundant headings * update _cache * misc: make block comment a Jade comment (This prevents the text from appearing in the generated HTML as an HTML comment.)
2 parents 14db838 + 3b03573 commit 6680acc

File tree

13 files changed

+16
-28
lines changed

13 files changed

+16
-28
lines changed

public/docs/dart/latest/tutorial/toh-pt1.jade

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include ../_util-fns
22

33
:marked
4-
# Once Upon a Time
5-
64
Every story starts somewhere. Our story starts where the [QuickStart](../quickstart.html) ends.
75

86
:marked

public/docs/dart/latest/tutorial/toh-pt2.jade

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
include ../_util-fns
22

33
:marked
4-
# It Takes Many Heroes
54
Our story needs more heroes.
65
We’ll expand our Tour of Heroes app to display a list of heroes,
76
allow the user to select a hero, and display the hero’s details.

public/docs/dart/latest/tutorial/toh-pt4.jade

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
include ../_util-fns
22

33
:marked
4-
# Services
54
The Tour of Heroes is evolving and we anticipate adding more components in the near future.
65

76
Multiple components will need access to hero data and we don't want to copy and

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(

public/docs/ts/latest/guide/template-syntax.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ table
401401
(element | component | directive) event, or (rarely) an attribute name.
402402
The following table summarizes:
403403

404-
// If you update this table, UPDATE it in Dart & JS, too.
404+
//- If you update this table, UPDATE it in Dart & JS, too.
405405
<div width="90%">
406406
table
407407
tr
@@ -813,7 +813,7 @@ block style-property-name-dart-diff
813813
including queries and saves to a remote server.
814814
These changes percolate through the system and are ultimately displayed in this and other views.
815815

816-
//
816+
//-
817817
:marked
818818
### Event bubbling and propagation [TODO: reinstate this section when it becomes true]
819819
Angular invokes the event-handling statement if the event is raised by the current element or one of its child elements.

public/docs/ts/latest/tutorial/_data.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
},
3333
"toh-pt6": {
3434
"title": "HTTP",
35+
"subtitle": "Getting and saving data",
3536
"intro": "We convert our service and components to use Angular's HTTP service",
3637
"nextable": true
3738
}

public/docs/ts/latest/tutorial/index.jade

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ block includes
22
include ../_util-fns
33

44
:marked
5-
# Tour of Heroes: the vision
6-
7-
Our grand plan is to build an app to help a staffing agency manage its stable of heroes.
5+
Our grand plan for this tutorial is to build an app to help a staffing agency manage its stable of heroes.
86
Even heroes need to find work.
97

108
Of course we'll only make a little progress in this tutorial. What we do build will

public/docs/ts/latest/tutorial/toh-pt1.jade

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
include ../_util-fns
22

33
:marked
4-
# Once Upon a Time
5-
64
Every story starts somewhere. Our story starts where the [QuickStart](../quickstart.html) ends.
75

86
Run the <live-example></live-example> for this part.

public/docs/ts/latest/tutorial/toh-pt2.jade

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
include ../_util-fns
22

33
:marked
4-
# It Takes Many Heroes
54
Our story needs more heroes.
65
We’ll expand our Tour of Heroes app to display a list of heroes,
76
allow the user to select a hero, and display the hero’s details.

public/docs/ts/latest/tutorial/toh-pt4.jade

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
include ../_util-fns
22

33
:marked
4-
# Services
54
The Tour of Heroes is evolving and we anticipate adding more components in the near future.
65

76
Multiple components will need access to hero data and we don't want to copy and

public/docs/ts/latest/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/latest/tutorial/toh-pt6.jade

-2
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.

0 commit comments

Comments
 (0)