feat: deprecate @angular/http in favor of @angular/common/http (#18906)
As of 5.0, @angular/http is deprecated. @angular/common/http will be the official HTTP API in Angular going forward. PR Close #18906
This commit is contained in:

committed by
Miško Hevery

parent
1ef558b57c
commit
72c7b6edea
@ -17,7 +17,7 @@ import {take} from 'rxjs/operator/take';
|
||||
*
|
||||
* Mock Connection to represent a {@link Connection} for tests.
|
||||
*
|
||||
* @experimental
|
||||
* @deprecated use @angular/common/http instead
|
||||
*/
|
||||
export class MockConnection implements Connection {
|
||||
// TODO Name `readyState` should change to be more generic, and states could be made to be more
|
||||
@ -190,7 +190,7 @@ export class MockConnection implements Connection {
|
||||
*
|
||||
* This method only exists in the mock implementation, not in real Backends.
|
||||
*
|
||||
* @experimental
|
||||
* @deprecated use @angular/common/http instead
|
||||
*/
|
||||
@Injectable()
|
||||
export class MockBackend implements ConnectionBackend {
|
||||
|
Reference in New Issue
Block a user