Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { UtilityModule } from '../utility/utility.module';
import { BookingCalendarComponent } from './bookingCalendar.component';
import { CalendarComponent } from './calendar.component';
import { CalendarService } from './calendar.service';
import * as ac from 'angular-calendar';
import { DateAdapter } from 'angular-calendar';
import 'angular-calendar/css/angular-calendar.css';
import { UIRouterModule } from '@uirouter/angular';
@NgModule({
imports: [
NgbModule,
ac.CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory,
}),
UIRouterModule,
UtilityModule,
],
declarations: [BookingCalendarComponent, CalendarComponent],
entryComponents: [CalendarComponent],
providers: [CalendarService],
})
export class CalendarModule {}