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

Commit accd74c

Browse files
trotylwardbell
authored andcommitted
docs(server-communication): Fix typo in example (#2199)
* docs(server-communication): Fix typo in example Clearly we're transforming the response, not the request. * docs(server-communication): Fix typo in example Clearly we're transforming the response, not the request.
1 parent 5b64b94 commit accd74c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/docs/_examples/server-communication/ts/app/wiki/wikipedia.service.1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class WikipediaService {
1818

1919
return this.jsonp
2020
.get(wikiUrl + queryString)
21-
.map(request => <string[]> request.json()[1]);
21+
.map(response => <string[]> response.json()[1]);
2222
// #enddocregion query-string
2323
}
2424
}

public/docs/_examples/server-communication/ts/app/wiki/wikipedia.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class WikipediaService {
2222
// TODO: Add error handling
2323
return this.jsonp
2424
.get(wikiUrl, { search: params })
25-
.map(request => <string[]> request.json()[1]);
25+
.map(response => <string[]> response.json()[1]);
2626
// #enddocregion call-jsonp
2727
}
2828
}

0 commit comments

Comments
 (0)