标签:port ide common span 模块 pcl tpc from angular
1. 在 app.module.ts 中引入模块
import { HttpClientModule } from ‘@angular/common/http‘;
2. 在 @NgModule.imports 中引入它
@NgModule({
......
imports: [
......
HttpClientModule,
......
],
......
})
Ionic 中出现 NullInjectorError: No provider for HttpClient 的解决办法
标签:port ide common span 模块 pcl tpc from angular
原文地址:https://www.cnblogs.com/rexfield/p/9108581.html