Skip to content

Commit 0cb0f66

Browse files
ajitsinghkaleratscott
authored andcommitted
docs: place download section in toh to the top (angular#36567)
this is part of a larger effort to standardise download sections on angular.io This commit partially addresses angular#35459 PR Close angular#36567
1 parent db11a0d commit 0cb0f66

File tree

7 files changed

+45
-12
lines changed

7 files changed

+45
-12
lines changed

aio/content/tutorial/toh-pt0.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ In this part of the tutorial, you'll do the following:
99
3. Serve the application.
1010
4. Make changes to the application.
1111

12+
<div class="alert is-helpful">
13+
14+
For the sample app that this page describes, see the <live-example></live-example>.
15+
16+
</div>
1217

1318
## Set up your environment
1419

@@ -113,9 +118,6 @@ Open `src/styles.css` and add the code below to the file.
113118

114119
## Final code review
115120

116-
The source code for this tutorial and the complete _Tour of Heroes_ global styles
117-
are available in the <live-example></live-example>.
118-
119121
Here are the code files discussed on this page.
120122

121123
<code-tabs>

aio/content/tutorial/toh-pt1.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ The application now has a basic title.
44
Next you will create a new component to display hero information
55
and place that component in the application shell.
66

7+
<div class="alert is-helpful">
8+
9+
For the sample app that this page describes, see the <live-example></live-example>.
10+
11+
</div>
12+
713
## Create the heroes component
814

915
Using the Angular CLI, generate a new component named `heroes`.
@@ -201,7 +207,7 @@ Note that `AppModule` declares both application components, `AppComponent` and
201207

202208
## Final code review
203209

204-
Your app should look like this <live-example></live-example>. Here are the code files discussed on this page.
210+
Here are the code files discussed on this page.
205211

206212
<code-tabs>
207213

aio/content/tutorial/toh-pt2.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
In this page, you'll expand the Tour of Heroes app to display a list of heroes, and
44
allow users to select a hero and display the hero's details.
55

6+
<div class="alert is-helpful">
7+
8+
For the sample app that this page describes, see the <live-example></live-example>.
9+
10+
</div>
11+
612

713
## Create mock heroes
814

@@ -220,8 +226,6 @@ The finished `<li>` looks like this:
220226

221227
## Final code review
222228

223-
Your app should look like this <live-example></live-example>.
224-
225229
Here are the code files discussed on this page, including the `HeroesComponent` styles.
226230

227231
<code-tabs>

aio/content/tutorial/toh-pt3.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ In this page, you'll take the first step in that direction by moving the hero de
1010
The `HeroesComponent` will only present the list of heroes.
1111
The `HeroDetailComponent` will present details of a selected hero.
1212

13+
<div class="alert is-helpful">
14+
15+
For the sample app that this page describes, see the <live-example></live-example>.
16+
17+
</div>
18+
1319
## Make the `HeroDetailComponent`
1420

1521
Use the Angular CLI to generate a new component named `hero-detail`.
@@ -136,7 +142,7 @@ without touching the parent `HeroesComponent`.
136142

137143
## Final code review
138144

139-
Here are the code files discussed on this page and your app should look like this <live-example></live-example>.
145+
Here are the code files discussed on this page.
140146

141147
<code-tabs>
142148

aio/content/tutorial/toh-pt4.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ The Tour of Heroes `HeroesComponent` is currently getting and displaying fake da
55
After the refactoring in this tutorial, `HeroesComponent` will be lean and focused on supporting the view.
66
It will also be easier to unit-test with a mock service.
77

8+
<div class="alert is-helpful">
9+
10+
For the sample app that this page describes, see the <live-example></live-example>.
11+
12+
</div>
13+
14+
815
## Why services
916

1017
Components shouldn't fetch or save data directly and they certainly shouldn't knowingly present fake data.
@@ -387,7 +394,7 @@ the selection. Use the "clear" button to clear the message history.
387394

388395
## Final code review
389396

390-
Here are the code files discussed on this page and your app should look like this <live-example></live-example>.
397+
Here are the code files discussed on this page.
391398

392399
<code-tabs>
393400

aio/content/tutorial/toh-pt5.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ There are new requirements for the Tour of Heroes app:
77
* When users click a hero name in either view, navigate to a detail view of the selected hero.
88
* When users click a *deep link* in an email, open the detail view for a particular hero.
99

10+
<div class="alert is-helpful">
11+
12+
For the sample app that this page describes, see the <live-example></live-example>.
13+
14+
</div>
15+
1016
When you’re done, users will be able to navigate the app like this:
1117

1218
<div class="lightbox">
@@ -466,7 +472,7 @@ from heroes list to the mini detail to the hero details and back to the heroes a
466472

467473
## Final code review
468474

469-
Here are the code files discussed on this page and your app should look like this <live-example></live-example>.
475+
Here are the code files discussed on this page.
470476

471477
{@a approutingmodule}
472478
{@a appmodule}

aio/content/tutorial/toh-pt6.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ Angular's `HttpClient`.
77
* Users can add, edit, and delete heroes and save these changes over HTTP.
88
* Users can search for heroes by name.
99

10-
When you're done with this page, the app should look like this <live-example></live-example>.
10+
<div class="alert is-helpful">
11+
12+
For the sample app that this page describes, see the <live-example></live-example>.
13+
14+
</div>
1115

1216
## Enable HTTP services
1317

@@ -519,8 +523,6 @@ If you enter characters that match any existing hero names, you'll see something
519523

520524
## Final code review
521525

522-
Your app should look like this <live-example></live-example>.
523-
524526
Here are the code files discussed on this page (all in the `src/app/` folder).
525527

526528
{@a heroservice}

0 commit comments

Comments
 (0)