angular4 Http升级到HttpClientModule 遇到的bug

在个人login组件当中,把httpClient导入到constructor就会致使上面的这个错误提示;app

construstor(private http: HttpClient) {}

然而在个人app.module.ts里面我已经把HttpClientModule模块引入却仍是没有用;code

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

相关文章
相关标签/搜索