angular4 Http升級到HttpClientModule 遇到的bug

在個人login組件當中,把httpClient導入到constructor就會致使上面的這個錯誤提示;app

construstor(private http: HttpClient) {}

然而在個人app.module.ts裏面我已經把HttpClientModule模塊引入卻仍是沒有用;code

import { HttpClientModule } from '@angular/common/http';

相關文章
相關標籤/搜索