Files
doneit-web/src/app/pages/agenda/agenda.module.ts
T

46 lines
1.3 KiB
TypeScript
Raw Normal View History

import { NgModule, LOCALE_ID, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2020-08-05 15:39:16 +01:00
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { AgendaPageRoutingModule } from './agenda-routing.module';
import { AgendaPage } from './agenda.page';
2020-09-07 12:01:05 +01:00
import { NgCalendarModule } from 'ionic2-calendar';
import { CalModalPageModule } from '../cal-modal/cal-modal.module';
import { registerLocaleData } from '@angular/common';
import localeDe from '@angular/common/locales/pt';
2020-09-07 12:01:05 +01:00
import { CalendarComponent } from 'src/app/components/calendar/calendar.component';
2021-01-29 09:45:27 +01:00
import { SharedModule } from 'src/app/shared/shared.module';
registerLocaleData(localeDe);
2021-01-25 16:18:36 +01:00
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
2020-08-05 15:39:16 +01:00
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
/* ComponentsModule, */
2021-01-25 16:18:36 +01:00
CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory
}),
2021-01-29 09:45:27 +01:00
SharedModule,
AgendaPageRoutingModule,
NgCalendarModule,
2020-09-07 12:01:05 +01:00
CalModalPageModule,
2020-08-05 15:39:16 +01:00
],
2020-09-07 12:01:05 +01:00
declarations: [AgendaPage, CalendarComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: [
{ provide: LOCALE_ID, useValue: 'pt-PT'}
]
2020-08-05 15:39:16 +01:00
})
export class AgendaPageModule {}