typescript IF_06_03_app.module.ts

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript IF_06_03_app.module.ts相关的知识,希望对你有一定的参考价值。

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule, RouteReuseStrategy, Routes } from '@angular/router';

import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
\!h import { HttpClientModule } from '@angular/common/http'; // Added this

@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
\!h   imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule, HttpClientModule], // Added HttpClientModule to the array
  providers: [
    StatusBar,
    SplashScreen,
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

以上是关于typescript IF_06_03_app.module.ts的主要内容,如果未能解决你的问题,请参考以下文章

typescript IF_06_05_home.page.ts_3

typescript IF_06_04_home.page.ts_2

typescript IF_05_06_NavigationService_TS

typescript IF_04_06_Radio_Binding_TS

typescript IF_05_03_Home_GoForward_TS

html IF_03_06_Fill_Button