Dear customer,
Greetings from Syncfusion Support.
We have checked your sample in which ngOnInit is misspelled which results in empty scheduler. We have modified the sample which can be viewed from the following link.
import { Component, OnInit } from '@angular/core';
import { EventSettingsModel, View, DayService, WeekService, WorkWeekService, MonthService, AgendaService }
from '@syncfusion/ej2-angular-schedule';
import { DataManager, WebApiAdaptor } from '@syncfusion/ej2-data';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
providers: [DayService, WeekService, WorkWeekService, MonthService, AgendaService]
})
export class AppComponent implements OnInit {
public selectedDate: Date = new Date(2017, 5, 5);
public currentView: View = 'Week';
public readonly: boolean = true;
private dataManger: DataManager = new DataManager({
url: 'https://js.syncfusion.com/demos/ejservices/api/Schedule/LoadData',
adaptor: new WebApiAdaptor,
crossDomain: true
});
// public eventSettings: EventSettingsModel = { dataSource: this.dataManger };
public eventSettings: EventSettingsModel = {};
ngOnInit() {
this.eventSettings.dataSource = this.dataManger;
}
}
Regards,
Nevitha