docs(http.ts): Fix MockBackend examples using backend.connections observer
Properly format observer examples.
This commit is contained in:
parent
aa8c5aa2e2
commit
5e9daed2e8
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue