{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/219","labels_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/219/comments","events_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/219/events","html_url":"https://github.com/angular-ui/ui-calendar/issues/219","id":55805475,"number":219,"title":"ui-calendar display not updating on change of Event Source Object date - dayClick","user":{"login":"gigmaps","id":5176547,"avatar_url":"https://avatars.githubusercontent.com/u/5176547?v=3","gravatar_id":"","url":"https://api.github.com/users/gigmaps","html_url":"https://github.com/gigmaps","followers_url":"https://api.github.com/users/gigmaps/followers","following_url":"https://api.github.com/users/gigmaps/following{/other_user}","gists_url":"https://api.github.com/users/gigmaps/gists{/gist_id}","starred_url":"https://api.github.com/users/gigmaps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigmaps/subscriptions","organizations_url":"https://api.github.com/users/gigmaps/orgs","repos_url":"https://api.github.com/users/gigmaps/repos","events_url":"https://api.github.com/users/gigmaps/events{/privacy}","received_events_url":"https://api.github.com/users/gigmaps/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T19:46:07Z","updated_at":"2015-02-17T21:36:39Z","closed_at":null,"body":"When updating calendar using dayClick function to an Event Source Object \r\nthe calendar isn't updating - see this SO question http://stackoverflow.com/questions/28100852\r\n\r\nThis fiddle is with the latest versions and DOES NOT work as expected:\r\n- http://jsfiddle.net/goredwards/y2du0yqw/\r\n- fullcalendar 2.2.6\r\n- ui-calendar 0.9.0\r\n\r\nProblem:\r\n- the Event Source Object IS being updated, as you can see from the output below the calendar\r\n- to update the calendar display, switch between tabs (which are set using an ng-if directive).\r\n\r\nThis fiddle is with older versions and (for this issue) DOES work as expected\r\n- http://jsfiddle.net/goredwards/o08yjk7L/\r\n- fullcalendar 1.6.7\r\n- ui-calendar 0.8.1\r\n\r\n(however it's got an $interpolate issue and is missing a bunch of other functionality relating to colours & background events etc)\r\n\r\nThe only difference between the two fiddles is the fullcalendar and ui-calendar source code.\r\n\r\nDoes anyone know of a fix or workaround to have calendar display updated on update of an Event Source Object ?"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/comments/74759212","html_url":"https://github.com/angular-ui/ui-calendar/issues/219#issuecomment-74759212","issue_url":"https://api.github.com/repos/angular-ui/ui-calendar/issues/219","id":74759212,"user":{"login":"Dlsqueak","id":8212383,"avatar_url":"https://avatars.githubusercontent.com/u/8212383?v=3","gravatar_id":"","url":"https://api.github.com/users/Dlsqueak","html_url":"https://github.com/Dlsqueak","followers_url":"https://api.github.com/users/Dlsqueak/followers","following_url":"https://api.github.com/users/Dlsqueak/following{/other_user}","gists_url":"https://api.github.com/users/Dlsqueak/gists{/gist_id}","starred_url":"https://api.github.com/users/Dlsqueak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dlsqueak/subscriptions","organizations_url":"https://api.github.com/users/Dlsqueak/orgs","repos_url":"https://api.github.com/users/Dlsqueak/repos","events_url":"https://api.github.com/users/Dlsqueak/events{/privacy}","received_events_url":"https://api.github.com/users/Dlsqueak/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T21:36:38Z","updated_at":"2015-02-17T21:36:38Z","body":"Not sure if you've fixed this, but if you're just trying to get a new event added to render on the calendar object this is how I did it:\r\n\r\n//Default the eventSources\r\n$scope.eventData.events = [];\r\n$scope.eventSources = [$scope.eventData]\r\n\r\nI then make my DB call and on http promise response I just manually push the event into the event array on $scope.eventData:\r\n\r\nvar eventAddSuccess= function(response){\r\n        $scope.eventSources[0].events.push(response);\r\n}\r\n\r\nI suppose technically you could do $scope.eventData.events.push(response) and it should update as well. \r\n\r\nI'm not an angular guy, or even a JS guy, but in order to render new events added to my calender or show highlighting on select, this is what I've had to do."}}