AngularJS UI-calendar not updating events on Calendar

前端 未结 11 2315
[愿得一人]
[愿得一人] 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:14

    Try this. It worked for me.

    function flushEvents()
    {
        $scope.events.splice(0,$scope.events.length);
    
        for(var i=0; i<$scope.events.length; i++)
        {
            $scope.events.splice(i,1);
        }
    
    }
    

提交回复
热议问题