ui-calendar icon indicating copy to clipboard operation
ui-calendar copied to clipboard

How do I attach sources from two sources?

Open GeorgeChackungal opened this issue 8 years ago • 2 comments

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?

GeorgeChackungal avatar Nov 27 '16 04:11 GeorgeChackungal

use the eventSources array: $scope.eventSources = [$scope.events1, $scope.events2];

in your case, the $scope is the vm. anyway, check the demo.

CurtisVayne avatar Dec 04 '16 22:12 CurtisVayne

Hi @CurtisVayne Were you able to get the google to work? I get an error: https://jsfiddle.net/4os6z5gh/ Thanks, Dan

danielbattat avatar Jul 17 '17 04:07 danielbattat