docs(http.ts): Fix MockBackend examples using backend.connections observer

Properly format observer examples.
This commit is contained in:
Scott Hatcher 2016-01-19 19:28:55 -08:00 committed by Alex Eagle
parent aa8c5aa2e2
commit 5e9daed2e8
1 changed files with 4 additions and 2 deletions

View File

@ -141,7 +141,8 @@ export {URLSearchParams} from './src/http/url_search_params';
* // Send a response to the request
* connection.mockRespond(response);
* });
* });
* }
* });
*
* http.get('people.json').observer({
* next: res => {
@ -269,7 +270,8 @@ export const HTTP_BINDINGS = HTTP_PROVIDERS;
* // Send a response to the request
* connection.mockRespond(response);
* });
* });
* }
* });
* jsonp.get('people.json').observer({
* next: res => {