diff --git a/scripts/templates/provider/ts.tmpl b/scripts/templates/provider/ts.tmpl index dbb8f960f62..18d13f72ec7 100644 --- a/scripts/templates/provider/ts.tmpl +++ b/scripts/templates/provider/ts.tmpl @@ -1,6 +1,5 @@ +import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; -import { Http } from '@angular/http'; -import 'rxjs/add/operator/map'; /* Generated class for the $CLASSNAME provider. @@ -11,7 +10,7 @@ import 'rxjs/add/operator/map'; @Injectable() export class $CLASSNAME { - constructor(public http: Http) { + constructor(public http: HttpClient) { console.log('Hello $CLASSNAME Provider'); }