X Tutup
Skip to content

Commit 5e9daed

Browse files
scatcheralexeagle
authored andcommitted
docs(http.ts): Fix MockBackend examples using backend.connections observer
Properly format observer examples.
1 parent aa8c5aa commit 5e9daed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/angular2/http.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ export {URLSearchParams} from './src/http/url_search_params';
141141
* // Send a response to the request
142142
* connection.mockRespond(response);
143143
* });
144-
* });
144+
* }
145+
* });
145146
*
146147
* http.get('people.json').observer({
147148
* next: res => {
@@ -269,7 +270,8 @@ export const HTTP_BINDINGS = HTTP_PROVIDERS;
269270
* // Send a response to the request
270271
* connection.mockRespond(response);
271272
* });
272-
* });
273+
* }
274+
* });
273275
274276
* jsonp.get('people.json').observer({
275277
* next: res => {

0 commit comments

Comments
 (0)
X Tutup