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