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.
This commit is contained in:
Trotyl Yu 2016-08-27 01:12:38 +08:00 committed by Ward Bell
parent 5b64b94540
commit accd74c0a2
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export class WikipediaService {
return this.jsonp
.get(wikiUrl + queryString)
.map(request => <string[]> request.json()[1]);
.map(response => <string[]> response.json()[1]);
// #enddocregion query-string
}
}

View File

@ -22,7 +22,7 @@ export class WikipediaService {
// TODO: Add error handling
return this.jsonp
.get(wikiUrl, { search: params })
.map(request => <string[]> request.json()[1]);
.map(response => <string[]> response.json()[1]);
// #enddocregion call-jsonp
}
}