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:
parent
5b64b94540
commit
accd74c0a2
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue