Skip to content

Commit efd6605

Browse files
danielsogldanbucholtz
authored andcommitted
refactor(templates): HttpClient (ionic-team#13067)
1 parent aaa3cac commit efd6605

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

scripts/templates/provider/ts.tmpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1+
import { HttpClient } from '@angular/common/http';
12
import { Injectable } from '@angular/core';
2-
import { Http } from '@angular/http';
3-
import 'rxjs/add/operator/map';
43

54
/*
65
Generated class for the $CLASSNAME provider.
@@ -11,7 +10,7 @@ import 'rxjs/add/operator/map';
1110
@Injectable()
1211
export class $CLASSNAME {
1312

14-
constructor(public http: Http) {
13+
constructor(public http: HttpClient) {
1514
console.log('Hello $CLASSNAME Provider');
1615
}
1716

0 commit comments

Comments
 (0)