Hi I’m currently following this blog
I am currently encountering an error where it is looking for a calendar_id
I have managed to acquire my current calendars in the list using the listCalendars method of the calendarplugin
I still don’t know where to add that calendar_id that is required by this method
$cordovaCalendar.createEvent({
**calendar_id: 2**
title: 'Space Race',
location: 'The Moon',
notes: 'Bring sandwiches',
startDate: new Date(2015, 0, 15, 18, 30, 0, 0, 0),
endDate: new Date(2015, 1, 17, 12, 0, 0, 0, 0)
}).then(function (result) {
console.log("Event created successfully");
}, function (err) {
console.error("There was an error: " + err);
});
Thanks