first commit
This commit is contained in:
61
src/app/content/applications/calender/calender.module.ts
Normal file
61
src/app/content/applications/calender/calender.module.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { CalendarModule, DateAdapter } from 'angular-calendar';
|
||||
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { FlatpickrModule } from 'angularx-flatpickr';
|
||||
import { BasicComponent } from './basic/basic.component';
|
||||
import { EventsComponent } from './events/events.component';
|
||||
import { AddeventComponent } from './addevent/addevent.component';
|
||||
import { CardModule } from '../../partials/general/card/card.module';
|
||||
import { BreadcrumbModule } from 'src/app/_layout/breadcrumb/breadcrumb.module';
|
||||
import { BlockUIModule } from 'ng-block-ui';
|
||||
import { BlockTemplateComponent } from 'src/app/_layout/blockui/block-template.component';
|
||||
import { DateTimePickerComponent } from './addevent/DateTimePickerComponent';
|
||||
import {
|
||||
NgbModalModule,
|
||||
NgbDatepickerModule,
|
||||
NgbTimepickerModule
|
||||
} from '@ng-bootstrap/ng-bootstrap';
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
CardModule,
|
||||
BreadcrumbModule,
|
||||
FormsModule,
|
||||
FlatpickrModule.forRoot(),
|
||||
BlockUIModule.forRoot({
|
||||
template: BlockTemplateComponent
|
||||
}),
|
||||
NgbModalModule,
|
||||
NgbDatepickerModule,
|
||||
NgbTimepickerModule,
|
||||
CalendarModule.forRoot({
|
||||
provide: DateAdapter,
|
||||
useFactory: adapterFactory
|
||||
}),
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: 'basic',
|
||||
component: BasicComponent
|
||||
},
|
||||
{
|
||||
path: 'events',
|
||||
component: EventsComponent
|
||||
},
|
||||
{
|
||||
path: 'addevent',
|
||||
component: AddeventComponent
|
||||
}
|
||||
])
|
||||
],
|
||||
|
||||
declarations: [
|
||||
BasicComponent,
|
||||
EventsComponent,
|
||||
AddeventComponent,
|
||||
DateTimePickerComponent
|
||||
]
|
||||
})
|
||||
export class CalenderModule {}
|
||||
Reference in New Issue
Block a user