Hi Elise,
Thank you for contacting Syncfusion Support.
We have prepared a sample for assigning resource dataSource and event dataSource from a service which can be viewed from the following link.
public selectedDate: Date = new Date(2018, 3, 4);
public group: GroupModel = {
resources: ['Projects', 'Categories']
};
public projectDataSource: Object[];
public categoryDataSource: Object[];
public allowMultiple: Boolean = true;
public data: Object[];
public eventSettings: EventSettingsModel;
constructor(public scheduledataservice: Scheduledata) {
this.data = scheduledataservice.getEvents();
this.projectDataSource = scheduledataservice.getProjectDataSource();
this.categoryDataSource = scheduledataservice.getCategoryDataSource();
this.eventSettings = {
dataSource: this.data,
};
}
Regards,
Nevitha