parent
4b1618cb03
commit
e6170e8ac3
|
@ -116,7 +116,8 @@ export {URLSearchParams} from './src/http/url_search_params';
|
|||
*
|
||||
* ```
|
||||
* import {provide, Injector} from 'angular2/angular2';
|
||||
* import {HTTP_PROVIDERS, Http, Response, XHRBackend, MockBackend} from 'angular2/http';
|
||||
* import {HTTP_PROVIDERS, Http, Response, XHRBackend} from 'angular2/http';
|
||||
* import {MockBackend} from 'angular2/http/testing';
|
||||
*
|
||||
* var people = [{name: 'Jeff'}, {name: 'Tobias'}];
|
||||
*
|
||||
|
@ -239,7 +240,8 @@ export const HTTP_BINDINGS = HTTP_PROVIDERS;
|
|||
*
|
||||
* ```
|
||||
* import {provide, Injector} from 'angular2/angular2';
|
||||
* import {JSONP_PROVIDERS, Jsonp, Response, JSONPBackend, MockBackend} from 'angular2/http';
|
||||
* import {JSONP_PROVIDERS, Jsonp, Response, JSONPBackend} from 'angular2/http';
|
||||
* import {MockBackend} from 'angular2/http/testing';
|
||||
*
|
||||
* var people = [{name: 'Jeff'}, {name: 'Tobias'}];
|
||||
* var injector = Injector.resolveAndCreate([
|
||||
|
|
|
@ -98,7 +98,8 @@ export class MockConnection implements Connection {
|
|||
* ### Example
|
||||
*
|
||||
* ```
|
||||
* import {MockBackend, DefaultOptions, Http} from 'angular2/http';
|
||||
* import {DefaultOptions, Http} from 'angular2/http';
|
||||
* import {MockBackend} from 'angular2/http/testing';
|
||||
* it('should get some data', inject([AsyncTestCompleter], (async) => {
|
||||
* var connection;
|
||||
* var injector = Injector.resolveAndCreate([
|
||||
|
|
|
@ -73,7 +73,8 @@ function mergeOptions(defaultOpts, providedOpts, method, url): RequestOptions {
|
|||
* ### Example
|
||||
*
|
||||
* ```typescript
|
||||
* import {MockBackend, BaseRequestOptions, Http} from 'angular2/http';
|
||||
* import {BaseRequestOptions, Http} from 'angular2/http';
|
||||
* import {MockBackend} from 'angular2/http/testing';
|
||||
* var injector = Injector.resolveAndCreate([
|
||||
* BaseRequestOptions,
|
||||
* MockBackend,
|
||||
|
|
Loading…
Reference in New Issue