12345678910111213141516171819202122232425262728 |
- import { NgModule } from '@angular/core';
- import { BrowserModule } from '@angular/platform-browser';
- import { RouteReuseStrategy } from '@angular/router';
- import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
- import { AppRoutingModule } from './app-routing.module';
- import { AppComponent } from './app.component';
- import { FormsModule } from '@angular/forms';
- import { CalendarModule, DateAdapter } from 'angular-calendar';
- import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
- @NgModule({
- declarations: [AppComponent],
- imports: [
- BrowserModule,
- IonicModule.forRoot(),
- AppRoutingModule,
- FormsModule,
- CalendarModule.forRoot({
- provide: DateAdapter,
- useFactory: adapterFactory,
- }),
- ],
- providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],
- bootstrap: [AppComponent],
- })
- export class AppModule {}
|