Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { SharedModule } from '@app/shared';
import { AppCalendarComponent } from './calendar/calendar.component';
import { AppCalendarHeaderComponent } from './calendar-header/calendar-header.component';
@NgModule({
imports: [
RouterModule.forChild([
{ path: '', component: AppCalendarComponent }
]),
CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory
}),
FlatpickrModule.forRoot(),
SharedModule
],
declarations: [AppCalendarComponent, AppCalendarHeaderComponent]
})
export class AppCalendarModule { }
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { FlatpickrModule } from 'angularx-flatpickr';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap';
import { DemoComponent } from './component';
@NgModule({
imports: [
CommonModule,
FormsModule,
NgbModalModule,
FlatpickrModule.forRoot(),
CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory
})
],
declarations: [DemoComponent],
exports: [DemoComponent]
})
export class DemoModule {}
import { AngularSplitModule } from 'angular-split';
import { MarkdownKanbanComponent } from './markdown/markdown-kanban/markdown-kanban.component';
@NgModule({
imports: [
CommonModule,
RouterModule,
FormsModule,
HttpClientModule,
ReactiveFormsModule,
CustomMaterialModule,
NgxTreeDndModule,
CalendarCommonModule,
EcoFabSpeedDialModule,
FlexLayoutModule,
FlatpickrModule.forRoot(),
AngularSplitModule.forRoot(),
MarkdownModule.forRoot({
markedOptions: {
provide: MarkedOptions,
useValue: {
gfm: true,
tables: true
},
},
}),
MindMapModule
],
declarations: [
CalendarHeaderComponent,
DraggableEditableSectionComponent,
ContentEditableDirective,