Error When i add angular ui-calendar


#1

guys can someone help me with this error ?
i just want use angular calendar ui in my interface android
but when i add library for that i got this error, before i add
this into my index.html everythins is okay

<link rel="stylesheet" href="lib/fullcalendar/dist/fullcalendar.css"/>
<!-- jquery, moment, and angular have to get included before fullcalendar -->
    <script type="text/javascript" src="lib/jquery/dist/jquery.min.js"></script>
    <script type="text/javascript" src="lib/moment/min/moment.min.js"></script>
    <script type="text/javascript" src="lib/angular/angular.min.js"></script>
    <script type="text/javascript" src="lib/angular-ui-calendar/src/calendar.js"></script>
    <script type="text/javascript" src="lib/fullcalendar/dist/fullcalendar.min.js"></script>
    <script type="text/javascript" src="lib/fullcalendar/dist/gcal.js"></script>

but when i try to add this to my index.html i got this error.
here my controler and my html

here agenda.html

<ion-view title="Agenda">
    <!--google admob section-->
    <ion-content scroll="true" style="background-color:#EFF3F8;">
        <div class="row padding">
          <div 
           ui-calendar="uiConfig.calendar"></div>
        </div>
        <div class="padding">
          <h2> Event today </h2>
        </div>
    </ion-content> <!--end google admob section-->
</ion-view>

and here my controller

appControllers.controller(‘AgendaCtrl’, function ($scope, $stateParams,$rootScope, $timeout,
Service ) {
$scope.eventSources = [];
/* config object */
$scope.uiConfig = {
calendar:{
height: 450,
editable: true,
header:{
left: ‘month basicWeek basicDay agendaWeek agendaDay’,
center: ‘title’,
right: ‘today prev,next’
},
// eventClick: $scope.alertEventOnClick,
// eventDrop: $scope.alertOnDrop,
// eventResize: $scope.alertOnResize
}
};

});

angular.js:12332TypeError: Cannot read property ‘’ of undefined
at lookup (ionic.bundle.js:35583)
at animationRunner (ionic.bundle.js:35647)
at performAnimation (ionic.bundle.js:36250)
at ionic.bundle.js:35925
at ionic.bundle.js:35505
at n.$digest (angular.js:15735)
at n.$apply (angular.js:15953)
at l (angular.js:10366)
at F (angular.js:10538)
at XMLHttpRequest.K.onload (angular.js:10479)