@@ -55,8 +55,8 @@ export class MockConnection implements Connection {
5555 *
5656 * ```
5757 * var connection;
58- * backend.connections.subscribe(c => connection = c);
59- * http.request('data.json').subscribe(res => console.log(res.text()));
58+ * backend.connections.toRx(). subscribe(c => connection = c);
59+ * http.request('data.json').toRx(). subscribe(res => console.log(res.text()));
6060 * connection.mockRespond(new Response('fake response')); //logs 'fake response'
6161 * ```
6262 *
@@ -117,8 +117,8 @@ export class MockConnection implements Connection {
117117 * var http = injector.get(Http);
118118 * var backend = injector.get(MockBackend);
119119 * //Assign any newly-created connection to local variable
120- * backend.connections.subscribe(c => connection = c);
121- * http.request('data.json').subscribe((res) => {
120+ * backend.connections.toRx(). subscribe(c => connection = c);
121+ * http.request('data.json').toRx(). subscribe((res) => {
122122 * expect(res.text()).toBe('awesome');
123123 * async.done();
124124 * });
@@ -151,8 +151,8 @@ export class MockBackend implements ConnectionBackend {
151151 * }, [MockBackend, BaseRequestOptions]]);
152152 * var backend = injector.get(MockBackend);
153153 * var http = injector.get(Http);
154- * backend.connections.subscribe(c => connection = c);
155- * http.request('something.json').subscribe(res => {
154+ * backend.connections.toRx(). subscribe(c => connection = c);
155+ * http.request('something.json').toRx(). subscribe(res => {
156156 * text = res.text();
157157 * });
158158 * connection.mockRespond(new Response({body: 'Something'}));
0 commit comments