We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa3cac commit efd6605Copy full SHA for efd6605
1 file changed
scripts/templates/provider/ts.tmpl
@@ -1,6 +1,5 @@
1
+import { HttpClient } from '@angular/common/http';
2
import { Injectable } from '@angular/core';
-import { Http } from '@angular/http';
3
-import 'rxjs/add/operator/map';
4
5
/*
6
Generated class for the $CLASSNAME provider.
@@ -11,7 +10,7 @@ import 'rxjs/add/operator/map';
11
10
@Injectable()
12
export class $CLASSNAME {
13
14
- constructor(public http: Http) {
+ constructor(public http: HttpClient) {
15
console.log('Hello $CLASSNAME Provider');
16
}
17
0 commit comments