Skip to content

Commit 79375ca

Browse files
chalinfilipesilva
authored andcommitted
docs(server-comm): fix path to heroes.json for Dart (angular#2837)
1 parent 8f7d593 commit 79375ca

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

public/docs/ts/_cache/guide/server-communication.jade

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,9 @@ a#in-mem-web-api
648648
:marked
649649
## Appendix: Tour of Heroes in-memory server
650650

651-
If we only cared to retrieve data, we could tell Angular to get the heroes from a `heroes.json` file like this one:
652-
+makeJson('server-communication/ts/app/heroes.json', null, 'app/heroes.json')(format=".")
651+
If the app only needed to retrieve data, you could get the heroes from a `heroes.json` file:
652+
- var _heroesJsonPath = (_docsFor == 'dart' ? 'web' : 'app') + '/heroes.json';
653+
+makeJson('server-communication/' + _docsFor + '/' + _heroesJsonPath, null, _heroesJsonPath)(format=".")
653654
.l-sub-section
654655
:marked
655656
We wrap the heroes array in an object with a `data` property for the same reason that a data server does:

public/docs/ts/latest/guide/server-communication.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ a#in-mem-web-api
653653
## Appendix: Tour of Heroes in-memory server
654654

655655
If the app only needed to retrieve data, you could get the heroes from a `heroes.json` file:
656-
+makeJson('server-communication/ts/app/heroes.json', null, 'app/heroes.json')(format=".")
656+
- var _heroesJsonPath = (_docsFor == 'dart' ? 'web' : 'app') + '/heroes.json';
657+
+makeJson('server-communication/' + _docsFor + '/' + _heroesJsonPath, null, _heroesJsonPath)(format=".")
657658
.l-sub-section
658659
:marked
659660
You wrap the heroes array in an object with a `data` property for the same reason that a data server does:

0 commit comments

Comments
 (0)