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

Commit 7e52648

Browse files
chalinkwalrath
authored andcommitted
docs(toh): update live example links (#1602)
1 parent afee8db commit 7e52648

File tree

13 files changed

+40
-47
lines changed

13 files changed

+40
-47
lines changed

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

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

33
+includeShared('{ts}', 'intro')
44

5-
:marked
6-
[View the source code](https://github.com/angular/angular.io/tree/master/public/docs/_examples/toh-5/dart)
5+
p Run the #[+liveExampleLink2('', 'toh-5')].
76

87
+includeShared('{ts}', 'main')
98

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ include ../_util-fns
3434

3535
.callout.is-helpful
3636
header Source code
37-
:marked
38-
The complete source code for the example app in this chapter is
39-
[in GitHub](https://github.com/angular/angular.io/tree/master/public/docs/_examples/toh-1/dart).
37+
p Run the #[+liveExampleLink2('', 'toh-1')] for this part.
4038

4139
:marked
4240
## Keep the app compiling and running
4341
We want to start the Dart compiler, have it watch for changes, and start our server. We'll do this by typing
4442

45-
code-example(format="" language="bash").
43+
code-example(language="bash").
4644
pub serve
4745

4846
:marked

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ include ../_util-fns
1212

1313
.callout.is-helpful
1414
header Source code
15-
:marked
16-
The complete source code for the example app in this chapter is
17-
[in GitHub](https://github.com/angular/angular.io/tree/master/public/docs/_examples/toh-2/dart).
15+
p Run the #[+liveExampleLink2('', 'toh-2')] for this part.
1816

1917
.l-main-section
2018
:marked
@@ -38,7 +36,7 @@ include ../_util-fns
3836
### Keep the app compiling and running
3937
We want to start the Dart compiler, have it watch for changes, and start our server. We'll do this by typing
4038

41-
code-example(format="." language="bash").
39+
code-example(language="bash").
4240
pub serve
4341

4442
:marked

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ include ../_util-fns
44
Our app is growing.
55
Use cases are flowing in for reusing components, passing data to components, and creating more reusable assets. Let's separate the heroes list from the hero details and make the details component reusable.
66

7-
The complete source code for the example app in this chapter is
8-
[in GitHub](https://github.com/angular/angular.io/tree/master/public/docs/_examples/toh-3/dart).
7+
p Run the #[+liveExampleLink2('', 'toh-3')] for this part.
98

109
.l-main-section
1110
:marked

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ include ../_util-fns
1515
Because data services are invariably asynchronous,
1616
we'll finish the chapter with a promise-based version of the data service.
1717

18-
The complete source code for the example app in this chapter is
19-
[in GitHub](https://github.com/angular/angular.io/tree/master/public/docs/_examples/toh-4/dart).
18+
p Run the #[+liveExampleLink2('', 'toh-4')] for this part.
2019

2120
.l-main-section
2221
:marked
@@ -42,7 +41,7 @@ include ../_util-fns
4241
Open a terminal/console window.
4342
Start the Dart compiler, watch for changes, and start our server by entering the command:
4443

45-
code-example(format="." language="bash").
44+
code-example(language="bash").
4645
pub serve
4746

4847
:marked

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ figure.image-display
1717
:marked
1818
The [Routing and Navigation](../guide/router.html) chapter covers the router in more detail
1919
than we will in this tour.
20-
:marked
21-
The complete source code for the example app in this chapter is
22-
[in GitHub](https://github.com/angular/angular.io/tree/master/public/docs/_examples/toh-5/dart).
20+
21+
p Run the #[+liveExampleLink2('', 'toh-5')] for this part.
2322

2423
.l-main-section
2524
:marked
@@ -48,7 +47,7 @@ figure.image-display
4847
Open a terminal/console window.
4948
Start the Dart compiler, watch for changes, and start our server by entering the command:
5049

51-
code-example(format="." language="bash").
50+
code-example(language="bash").
5251
pub serve
5352

5453
:marked

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ include ../_util-fns
2626
to chapters with greater depth.
2727
// #enddocregion intro
2828
29-
:marked
30-
[Run the live example](/resources/live-examples/toh-6/ts/plnkr.html)
29+
p Run the #[+liveExampleLink2('', 'toh-6')].
3130

3231
// #docregion main
3332
.l-main-section

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ include ../_util-fns
55

66
Every story starts somewhere. Our story starts where the [QuickStart](../quickstart.html) ends.
77

8-
[Run the live example for part 1](/resources/live-examples/toh-1/ts/plnkr.html)
9-
8+
p Run the #[+liveExampleLink2('', 'toh-1')] for this part.
9+
:marked
1010
Create a folder called `angular2-tour-of-heroes` and follow the [QuickStart](../quickstart.html) steps
1111
which provide the prerequisites, the folder structure, and the core files for our Tour of Heroes.
1212

@@ -33,7 +33,7 @@ include ../_quickstart_repo
3333
## Keep the app transpiling and running
3434
We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing
3535

36-
code-example(format="" language="bash").
36+
code-example(language="bash").
3737
npm start
3838

3939
:marked
@@ -170,8 +170,8 @@ code-example(language="html").
170170
using the built-in `ngModel` directive.
171171
* The `ngModel` directive also propagates changes to every other binding of the `hero.name`.
172172

173-
[Run the live example for part 1](/resources/live-examples/toh-1/ts/plnkr.html)
174-
173+
p Run the #[+liveExampleLink2('', 'toh-1')] for this part.
174+
:marked
175175
Here's the complete `app.component.ts` as it stands now:
176176

177177
+makeExample('toh-1/ts/app/app.component.ts', 'pt1', 'app.component.ts')
@@ -183,4 +183,4 @@ code-example(language="html").
183183
We also want to allow the user to select a hero and display their details.
184184
We’ll learn more about how to retrieve lists, bind them to the
185185
template, and allow a user to select it in the
186-
[next tutorial chapter](./toh-pt2.html).
186+
[next tutorial chapter](./toh-pt2.html).

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ include ../_util-fns
66
We’ll expand our Tour of Heroes app to display a list of heroes,
77
allow the user to select a hero, and display the hero’s details.
88

9-
[Run the live example for part 2](/resources/live-examples/toh-2/ts/plnkr.html)
10-
9+
p Run the #[+liveExampleLink2('', 'toh-2')] for this part.
10+
:marked
1111
Let’s take stock of what we’ll need to display a list of heroes.
1212
First, we need a list of heroes. We want to display those heroes in the view’s template,
1313
so we’ll need a way to do that.
@@ -38,7 +38,7 @@ include ../_util-fns
3838
### Keep the app transpiling and running
3939
We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing
4040

41-
code-example(format="." language="bash").
41+
code-example(language="bash").
4242
npm start
4343

4444
:marked
@@ -301,8 +301,8 @@ code-example(format="." language="bash").
301301
* We added the ability to select a hero and show the hero’s details
302302
* We learned how to use the built-in directives `ngIf` and `ngFor` in a component’s template
303303

304-
[Run the live example for part 2](/resources/live-examples/toh-2/ts/plnkr.html)
305-
304+
p Run the #[+liveExampleLink2('', 'toh-2')] for this part.
305+
:marked
306306
### The Road Ahead
307307
Our Tour of Heroes has grown, but it’s far from complete.
308308
We can't put the entire app into a single component.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include ../_util-fns
44
Our app is growing.
55
Use cases are flowing in for reusing components, passing data to components, and creating more reusable assets. Let's separate the heroes list from the hero details and make the details component reusable.
66

7-
[Run the live example for part 3](/resources/live-examples/toh-3/ts/plnkr.html)
7+
p Run the #[+liveExampleLink2('', 'toh-3')] for this part.
88

99
.l-main-section
1010
:marked
@@ -242,7 +242,7 @@ code-example(format=".")
242242
* We learned to bind a parent component to a child component.
243243
* We learned to declare the application directives we need in a `directives` array.
244244

245-
[Run the live example for part 3](/resources/live-examples/toh-3/ts/plnkr.html).
245+
p Run the #[+liveExampleLink2('', 'toh-3')] for this part.
246246

247247
.l-main-section
248248
:marked

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ include ../_util-fns
1515
Because data services are invariably asynchronous,
1616
we'll finish the chapter with a promise-based version of the data service.
1717

18-
:marked
19-
[Run the live example for part 4](/resources/live-examples/toh-4/ts/plnkr.html)
18+
p Run the #[+liveExampleLink2('', 'toh-4')] for this part.
2019

2120
.l-main-section
2221
:marked
@@ -41,12 +40,13 @@ include ../_util-fns
4140
.file systemjs.config.js
4241
.file tsconfig.json
4342
.file typings.json
43+
4444
:marked
4545
### Keep the app transpiling and running
4646
Open a terminal/console window.
4747
Start the TypeScript compiler, watch for changes, and start our server by entering the command:
4848

49-
code-example(format="." language="bash").
49+
code-example(language="bash").
5050
npm start
5151

5252
:marked
@@ -340,8 +340,8 @@ a#child-component
340340
* We created mock hero data and imported them into our service
341341
* We designed our service to return a promise and our component to get our data from the promise
342342

343-
[Run the live example for part 4](/resources/live-examples/toh-4/ts/plnkr.html)
344-
343+
p Run the #[+liveExampleLink2('', 'toh-4')] for this part.
344+
:marked
345345
### The Road Ahead
346346
Our Tour of Heroes has become more reusable using shared components and services.
347347
We want to create a dashboard, add menu links that route between the views, and format data in a template.

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

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ figure.image-display
1717
:marked
1818
The [Routing and Navigation](../guide/router-deprecated.html) chapter covers the router in more detail
1919
than we will in this tour.
20-
:marked
21-
[Run the live example](/resources/live-examples/toh-5/ts/plnkr.html).
20+
21+
p Run the #[+liveExampleLink2('', 'toh-5')] for this part.
22+
2223
.l-sub-section
2324
img(src='/resources/images/devguide/plunker-separate-window-button.png' alt="pop out the window" align="right" style="margin-right:-20px")
2425
:marked
@@ -55,7 +56,7 @@ figure.image-display
5556
Open a terminal/console window and enter the following command to
5657
start the TypeScript compiler, start the server, and watch for changes:
5758

58-
code-example(format="." language="bash").
59+
code-example(language="bash").
5960
npm start
6061

6162
:marked
@@ -646,10 +647,11 @@ figure.image-display
646647
.l-main-section
647648
:marked
648649
## Application structure and code
649-
650-
Review the sample source code [in the live example for this chapter](/resources/live-examples/toh-5/ts/plnkr.html).
650+
p.
651+
Review the sample source code in the #[+liveExampleLink2('', 'toh-5')] for this part.
651652
Verify that we have the following structure:
652653

654+
:marked
653655
.filetree
654656
.file angular2-tour-of-heroes
655657
.children

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ include ../_util-fns
88
and save these changes back to the server.
99

1010
In this chapter we teach our application to make the corresponding http calls to a remote server's web api.
11-
:marked
12-
[Run the live example](/resources/live-examples/toh-6/ts/plnkr.html).
11+
12+
p Run the #[+liveExampleLink2('', 'toh-6')] for this part.
1313

1414
.l-main-section
1515
:marked
@@ -21,7 +21,7 @@ include ../_util-fns
2121
Open a terminal/console window and enter the following command to
2222
start the TypeScript compiler, start the server, and watch for changes:
2323

24-
code-example(format="." language="bash").
24+
code-example(language="bash").
2525
npm start
2626

2727
:marked

0 commit comments

Comments
 (0)