From 5e9daed2e82df4775d323895e13bacda8e0cc3b4 Mon Sep 17 00:00:00 2001 From: Scott Hatcher Date: Tue, 19 Jan 2016 19:28:55 -0800 Subject: [PATCH] docs(http.ts): Fix MockBackend examples using backend.connections observer Properly format observer examples. --- modules/angular2/http.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/angular2/http.ts b/modules/angular2/http.ts index d1dcdbeb0e..9b003f2fca 100644 --- a/modules/angular2/http.ts +++ b/modules/angular2/http.ts @@ -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 => {