app.module.ts 896 B

1234567891011121314151617181920212223242526272829
  1. import { NgModule } from '@angular/core';
  2. import { BrowserModule } from '@angular/platform-browser';
  3. import { RouteReuseStrategy } from '@angular/router';
  4. import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
  5. import { AppRoutingModule } from './app-routing.module';
  6. import { AppComponent } from './app.component';
  7. import { FormsModule } from '@angular/forms';
  8. import { CalendarModule, DateAdapter } from 'angular-calendar';
  9. import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
  10. @NgModule({
  11. declarations: [AppComponent],
  12. imports: [
  13. BrowserModule,
  14. IonicModule.forRoot(),
  15. AppRoutingModule,
  16. FormsModule,
  17. CalendarModule.forRoot({
  18. provide: DateAdapter,
  19. useFactory: adapterFactory,
  20. }),
  21. ],
  22. providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
  23. bootstrap: [AppComponent],
  24. })
  25. export class AppModule {}