📜  设置 HttpClient - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:33.379000             🧑  作者: Mango

代码示例1
import { HttpClientModule } from '@angular/common/http';
    @NgModule({
    declarations: [
    AppComponent
    ],
    imports: [
    BrowserModule,
    HttpClientModule
    ],
    bootstrap: [AppComponent]
    })
    export class AppModule { }