UNPKG

worker-calendar

Version:

A customizable, responsive Angular calendar component for scheduling worker appointments or shifts

35 lines (34 loc) 952 B
import { NgModule, ModuleWithProviders } from '@angular/core'; import { CommonModule } from '@angular/common'; import { WorkerCalendarComponent } from './components/worker-calendar/worker-calendar.component'; import { NgVarDirective } from './directives/ng-var.directive'; import { DragDropModule } from '@angular/cdk/drag-drop'; /** * Worker Calendar Module * Compatible with Angular 14.2.0 and Argon Dashboard Angular 1.5.0 */ @NgModule({ declarations: [ WorkerCalendarComponent, NgVarDirective ], imports: [ CommonModule, DragDropModule ], exports: [ WorkerCalendarComponent ] }) export class WorkerCalendarModule { /** * Use this method when importing the module in the root AppModule * Required for Angular 14.2.0 compatibility with Argon Dashboard */ static forRoot(): ModuleWithProviders<WorkerCalendarModule> { return { ngModule: WorkerCalendarModule, providers: [] }; } }