Closed CJYate closed 7 years ago
Fixed: This is due to misconfiguration of my controller. WAS:
vm.eventSources = {
events: [{
title: "Do some development",
start: '2016-08-12',
end: '2016-10-22'
}, {
title: "Wave",
start: '2016-09-09',
end: '2016-09-10'
}],
color: 'green',
textColor: 'yellow'
};
Should be:
vm.eventSources = [{
events: [{
title: "Do some development",
start: '2016-08-12',
end: '2016-10-22'
}, {
title: "Wave",
start: '2016-09-09',
end: '2016-09-10'
}],
color: 'green',
textColor: 'yellow'
}];
I'm getting console log errors on loading the page my calendar is on:
TypeError: ((intermediate value)(intermediate value)(intermediate value) || []).reduce is not a function occurring in changeWatcher:
Source is:
Also TypeError: (sources || []).reduce is not a function here:
Any ideas? What info can I provide to help diagnose this?
Angular 1.5.8, on Rails 5.0.0.1.