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

Commit b93fb12

Browse files
brandonrobertswardbell
authored andcommitted
chore(examples): Updated live example links to use helper directive
closes #2005
1 parent 531d6a8 commit b93fb12

22 files changed

+40
-37
lines changed

public/docs/js/latest/cookbook/ts-to-js.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ include ../../../../_includes/_util-fns
2626

2727
[Host and Query Metadata](#other-property-metadata)
2828

29-
**Run and compare the live [TypeScript](/resources/live-examples/cb-ts-to-js/ts/plnkr.html) and
30-
[JavaScript](/resources/live-examples/cb-ts-to-js/js/plnkr.html) code shown in this cookbook.**
29+
**Run and compare the live <live-example name="cb-ts-to-js">TypeScript</live-example> and <live-example name="cb-ts-to-js" lang="js">JavaScript</live-example>
30+
code shown in this cookbook.**
3131

3232
a(id="modularity")
3333
.l-main-section

public/docs/js/latest/guide/forms-deprecated.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ include ../_util-fns
3535

3636
- How to share information across controls with template local variables
3737

38-
[Live Example](/resources/live-examples/forms-deprecated/js/plnkr.html)
38+
<live-example>Live Example</live-example>
39+
3940
.l-main-section
4041
:marked
4142
## Template-Driven Forms

public/docs/js/latest/guide/forms.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ include ../_util-fns
3535

3636
- How to share information across controls with template local variables
3737

38-
[Live Example](/resources/live-examples/forms/js/plnkr.html)
38+
<live-example>Live Example</live-example>
3939

4040
.l-main-section
4141
:marked

public/docs/js/latest/quickstart.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include _util-fns
1313
:marked
1414
## See It Run!
1515

16-
Running the [live example](/resources/live-examples/quickstart/js/plnkr.html)
16+
Running the <live-example></live-example>
1717
is the quickest way to see an Angular 2 app come to life.
1818

1919
Clicking that link fires up a browser, loads the sample in [plunker](http://plnkr.co/ "Plunker"),

public/docs/ts/latest/cookbook/a1-a2-quick-reference.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ a(id="top")
66
syntax and its equivalent in Angular&nbsp;2.
77

88
:marked
9-
**See the Angular 2 syntax in this [live example](/resources/live-examples/cb-a1-a2-quick-reference/ts/plnkr.html)**.
9+
**See the Angular 2 syntax in this <live-example name="cb-a1-a2-quick-reference"></live-example>**.
1010

1111
## Contents
1212
This chapter covers

public/docs/ts/latest/cookbook/component-communication.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include ../_util-fns
3030
[Parent and children communicate via a service](#bidirectional-service)
3131

3232
:marked
33-
**See the [live example](/resources/live-examples/cb-component-communication/ts/plnkr.html)**.
33+
**See the <live-example name="cb-component-communication"></live-example>**.
3434

3535
.l-main-section
3636
<a id="parent-to-child"></a>

public/docs/ts/latest/cookbook/component-relative-paths.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ include ../_util-fns
7575
:marked
7676
## Source
7777

78-
**We can see the [live example](/resources/live-examples/cb-component-relative-paths/ts/plnkr.html)**
78+
**We can see the <live-example name="cb-component-relative-paths"></live-example>**
7979
and download the source code from there
8080
or simply read the pertinent source here.
8181
+makeTabs(

public/docs/ts/latest/cookbook/dependency-injection.jade

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ include ../_util-fns
4545
[Break circularities with a forward class reference (*forwardRef*)](#forwardref)
4646

4747
:marked
48-
**See the [live example](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)**
48+
**See the <live-example name="cb-dependency-injection"></live-example>**
4949
of the code supporting this cookbook.
5050

5151
.l-main-section
@@ -236,7 +236,7 @@ figure.image-display
236236
The getter for the `hero` property pulls the cached hero from the service.
237237
And the template displays this data-bound property.
238238

239-
Find this example in [live code](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)
239+
Find this example in <live-example name="cb-dependency-injection">live code</live-example>
240240
and confirm that the three `HeroBioComponent` instances have their own cached hero data.
241241
figure.image-display
242242
img(src="/resources/images/cookbooks/dependency-injection/hero-bios.png" alt="Bios")
@@ -535,7 +535,7 @@ a(id='usefactory')
535535
:marked
536536
The function retrieves candidate heroes from the `HeroService`,
537537
takes `2` of them to be the runners-up, and returns their concatenated names.
538-
Look at the [live example](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)
538+
Look at the <live-example name="cb-dependency-injection"></live-example>
539539
for the full source code.
540540

541541
a(id="tokens")
@@ -703,7 +703,7 @@ a(id='alex')
703703
+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','cathy','parent-finder.component.ts (CathyComponent)')(format='.')
704704
:marked
705705
We added the [@Optional](#optional) qualifier for safety but
706-
the [live example](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)
706+
the <live-example name="cb-dependency-injection"></live-example>
707707
confirms that the `alex` parameter is set.
708708

709709
<a id="base-parent"></a>
@@ -737,7 +737,7 @@ a(id='alex')
737737
+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','craig','parent-finder.component.ts (CraigComponent)')(format='.')
738738
:marked
739739
Unfortunately, this does not work.
740-
The [live example](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)
740+
The <live-example name="cb-dependency-injection"></live-example>
741741
confirms that the `alex` parameter is null.
742742
*We cannot inject a parent by its base class.*
743743

public/docs/ts/latest/cookbook/dynamic-form-deprecated.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ include ../_util-fns
3535
[Dynamic Template](#dynamic-template)
3636

3737
:marked
38-
**See the [live example](/resources/live-examples/cb-dynamic-form-deprecated/ts/plnkr.html)**.
38+
**See the <live-example name="cb-dynamic-form-deprecated"></live-example>**.
3939

4040
.l-main-section
4141
<a id="object-model"></a>

public/docs/ts/latest/cookbook/dynamic-form.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ include ../_util-fns
3737
[Dynamic Template](#dynamic-template)
3838

3939
:marked
40-
**See the [live example](/resources/live-examples/cb-dynamic-form/ts/plnkr.html)**.
40+
**See the <live-example name="cb-dynamic-form"></live-example>**.
4141

4242
.l-main-section
4343
<a id="bootstrap"></a>

0 commit comments

Comments
 (0)