import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import {
EventSettingsModel, DayService, WeekService, WorkWeekService, MonthService,
AgendaService, ScheduleComponent, View,ResizeService, DragAndDropService
} from '@syncfusion/ej2-angular-schedule';
import { L10n } from '@syncfusion/ej2-base';
L10n.load({
'en-US': {
'schedule': {
"newEvent": "Add Event",
"saveButton": "Ok",
"cancelButton": "No",
},
}
});
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
providers: [DayService, WeekService, WorkWeekService, MonthService, AgendaService,ResizeService, DragAndDropService],
encapsulation: ViewEncapsulation.None
})
export class AppComponent implements OnInit {
public selectedDate: Date = new Date(2018, 1, 15);
ngOnInit(): void {
}
} |