📌  相关文章
📜  没有 HttpClient 的提供者! - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:08.603000             🧑  作者: Mango

代码示例4
import { HttpModule } from '@angular/http';
import { HttpClientModule, HttpClient } from '@angular/common/http';
.
.
.
@NgModule({
    imports: [
        BrowserModule,
        HttpClientModule,
        HttpModule,
        BrowserAnimationsModule,
        FormsModule,
        AppRoutingModule,
.
.
.