lbertenasco / ap-ng2-fullcalendar

Angular2 fullcalendar component
MIT License
35 stars 18 forks source link

trouble updating events #68

Open iwanzijderveld opened 6 years ago

iwanzijderveld commented 6 years ago

I'm on Angular 4.4.6 and I use ap-angular2-fullcalendar 1.3.1.

I have an error while updating events. I load my events from the database and then made a component for handling the calendar plugin. the @Input()is an array of event data which I check with ItterableDiffer and keyValuediffer if an object in the array has been changed. Now when I load the page and set the @Input() it works like a charm, however, when I update the event with the same function the event.end results in null when I call

fullCalendar('updateEvent', event); I get the event by using fullCalendar('clientEvents', eventId); and then update it's values.

What am I doing wrong?