{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/276","labels_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/276/comments","events_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/276/events","html_url":"https://github.com/angular-ui/ui-calendar/issues/276","id":79881467,"number":276,"title":"events/eventSources is not updating","user":{"login":"mattoliver","id":1920129,"avatar_url":"https://avatars.githubusercontent.com/u/1920129?v=3","gravatar_id":"","url":"https://api.github.com/users/mattoliver","html_url":"https://github.com/mattoliver","followers_url":"https://api.github.com/users/mattoliver/followers","following_url":"https://api.github.com/users/mattoliver/following{/other_user}","gists_url":"https://api.github.com/users/mattoliver/gists{/gist_id}","starred_url":"https://api.github.com/users/mattoliver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattoliver/subscriptions","organizations_url":"https://api.github.com/users/mattoliver/orgs","repos_url":"https://api.github.com/users/mattoliver/repos","events_url":"https://api.github.com/users/mattoliver/events{/privacy}","received_events_url":"https://api.github.com/users/mattoliver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-23T15:49:49Z","updated_at":"2015-12-16T21:18:01Z","closed_at":null,"body":"I have tried every solution I have found, including rerenderEvents, refetchEvents, etc. I even spliced the array to empty it and then pushed each event back on the array to no success. Here is my code for updating eventSources (shortCalendar is the source array that is updated via factory):\r\n```\r\n  $scope.$watch(function () { return Events.shortCalendar }, function (newVal, oldVal) {\r\n    if (typeof newVal !== 'undefined') {\r\n        $scope.eventsSource.splice(0, $scope.eventsSource.length);\r\n        for(var i = 0; i < Events.shortCalendar.length; i++)\r\n        {\r\n          $scope.eventsSource.push(Events.shortCalendar[i]);\r\n          console.log('add 1');\r\n        }\r\n    }\r\n});\r\n\r\n  $scope.update = function() {\r\n        uiCalendarConfig.calendars['calendar'].fullCalendar('rerenderEvents');\r\n        uiCalendarConfig.calendars['calendar'].fullCalendar('render');\r\n  };\r\n```\r\nThanks so much for any help, really appreciated."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/comments/165249751","html_url":"https://github.com/angular-ui/ui-calendar/issues/276#issuecomment-165249751","issue_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/276","id":165249751,"user":{"login":"HashtagPurvi","id":13836715,"avatar_url":"https://avatars.githubusercontent.com/u/13836715?v=3","gravatar_id":"","url":"https://api.github.com/users/HashtagPurvi","html_url":"https://github.com/HashtagPurvi","followers_url":"https://api.github.com/users/HashtagPurvi/followers","following_url":"https://api.github.com/users/HashtagPurvi/following{/other_user}","gists_url":"https://api.github.com/users/HashtagPurvi/gists{/gist_id}","starred_url":"https://api.github.com/users/HashtagPurvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HashtagPurvi/subscriptions","organizations_url":"https://api.github.com/users/HashtagPurvi/orgs","repos_url":"https://api.github.com/users/HashtagPurvi/repos","events_url":"https://api.github.com/users/HashtagPurvi/events{/privacy}","received_events_url":"https://api.github.com/users/HashtagPurvi/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T21:18:01Z","updated_at":"2015-12-16T21:18:01Z","body":"+1 for @jdnichollsc solution. Thanks a lot.\r\nFinally able to get through it !!\r\n\r\n"}}