AngularJS UI-calendar not updating events on Calendar

前端 未结 11 2346
[愿得一人]
[愿得一人] 2020-12-10 04:52

I am using Angular UI-Calendar to show some events on the Calendar. The events are showing fine on the Calendar. But when I update any event\'s details, the event\'s detail

11条回答
  •  心在旅途
    2020-12-10 05:30

    Was stuck on this for a while. What seems to be working for me turned out to be quite simple

    I fetch my calendar from google and run an event formatter function. In this I define a new array and at the end of the function I set my eventSource equal to the new array. Then I call $scope.$apply

        x = []
        for e in events
          x.push(
            title: e.summary
            etc...
          )
        $scope.eventSource = x
        $scope.$apply()
    

提交回复
热议问题