gypjoy

全干工程师

ERROR Error: StaticInjectorError(AppModule)[AppComponent -> HttpClient]

在你的app.module.ts文件中导入HttpClientModule.

import { ReactiveFormsModule } from '@angular/forms';

[...]

@NgModule({
  imports: [
    [...]
    HttpClientModule
  ],
  [...]
})

留言