1
|
import { NgModule } from '@angular/core';
|
2
|
import { CalendarModule, DateAdapter } from 'angular-calendar';
|
3
|
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
4
|
import { DayPickerComponent } from './day-picker.component';
|
5
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
6
|
import {MatButtonModule} from '@angular/material';
|
7
|
|
8
|
@NgModule({
|
9
|
declarations: [ DayPickerComponent ],
|
10
|
exports: [ DayPickerComponent ],
|
11
|
imports: [
|
12
|
CalendarModule.forRoot({
|
13
|
provide: DateAdapter,
|
14
|
useFactory: adapterFactory
|
15
|
}),
|
16
|
BrowserAnimationsModule,
|
17
|
MatButtonModule
|
18
|
],
|
19
|
})
|
20
|
export class DayPickerModule {}
|