Angularjs 如何控制fullcalendar中事件的点击?

Angularjs 如何控制fullcalendar中事件的点击?,angularjs,cordova,ionic-framework,fullcalendar,Angularjs,Cordova,Ionic Framework,Fullcalendar,我正在cordova angularjs中开发 我曾经在我的项目中集成了一个完整的日历 我的目标是:我希望当我在我的完整日历中单击一个事件时,会显示一个弹出窗口 我的控制器: facebookExample.controller("evenementCalendarController", function($scope, $cordovaOauth, $localStorage, $location,$ionicPopup,$state,$http,$cordovaCalendar,uiCal

我正在
cordova angularjs
中开发

我曾经在我的项目中集成了一个完整的日历

我的目标是:我希望当我在我的完整日历中单击一个事件时,会显示一个弹出窗口

我的控制器:

facebookExample.controller("evenementCalendarController", function($scope, $cordovaOauth, $localStorage, $location,$ionicPopup,$state,$http,$cordovaCalendar,uiCalendarConfig) {    
    $http.get('http://127.0.0.1:8080/elodieService/evenements/'+$localStorage.idInfoEvent+'/l', { params: {fields: "titre_annonce,date_evenement",format:"json"} }).then(function(result) {   
        var d= new Date(result.data.date_evenement);
        $scope.alertOnEventClick = function( date,allDay,jsEvent, view) {
            $scope.alertMessage = (' was clicked ');
        };

        $scope.uiConfig = {
            calendar:{
                height: 450,
                editable: true,
                lang: 'fr',


                dayClick: $scope.alertOnEventClick,
                eventDrop: $scope.alertOnDrop,
                eventResize: $scope.alertOnResize,

                events: [
                {
                 title: title,
                 start: d,
                 allDay: true,
                 //rendering: 'background',
                 backgroundColor: '#00CED1',
                }
                ],
                 color: 'red',   // an option!
                 textColor: 'black',
                calendar:{
                   lang: 'fr'
                }

            }
        };
    });
});
我得到以下错误:

!JavaScript ERROR: 'undefined' is not an object (evaluating 'array.length')
http://localhost:36994/lib/angular-ui-calendar/src/calendar.js:98 
!JavaScript ERROR: 'undefined' is not an object (evaluating 'sources.length')
http://localhost:36994/lib/angular-ui-calendar/src/calendar.js:63 

我的弹出窗口不会显示。如何解决此问题?

尝试删除最后一个事件选项后的逗号:

backgroundColor: '#00CED1',
这是该事件对象的最后一个属性,因此不应后跟逗号