ui-calendar
ui-calendar copied to clipboard
How do I attach sources from two sources?
I wanted to attach sources from google calander as well as my own array. vm.events1 = [{ googleCalendarId: 'en.indian#[email protected]' }]; & var events2 = [ [{ id: 1, title: 'All Day Event', start: new Date(y, m, 1), end: null }, { id: 2, title: 'Long Event', start: new Date(y, m, d - 5), end: new Date(y, m, d - 2) }]];
Any idea how to do this?
use the eventSources array:
$scope.eventSources = [$scope.events1, $scope.events2];
in your case, the $scope is the vm. anyway, check the demo.
Hi @CurtisVayne Were you able to get the google to work? I get an error: https://jsfiddle.net/4os6z5gh/ Thanks, Dan