function CalendarCtrl($scope) {

    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();

    // Events
    $scope.events = [
        {title: 'All Day Event',start: new Date(y, m, 1)},
        {title: 'Long Event',start: new Date(y, m, d - 5),end: new Date(y, m, d - 2)},
        {id: 999,title: 'Repeating Event',start: new Date(y, m, d - 3, 16, 0),allDay: false},
        {id: 999,title: 'Repeating Event',start: new Date(y, m, d + 4, 16, 0),allDay: false},
        {title: 'Birthday Party',start: new Date(y, m, d + 1, 19, 0),end: new Date(y, m, d + 1, 22, 30),allDay: false},
        {title: 'Click for Google',start: new Date(y, m, 28),end: new Date(y, m, 29),url: 'http://google.com/'}
    ];


    /* message on eventClick */
    $scope.alertOnEventClick = function( event, allDay, jsEvent, view ){
        $scope.alertMessage = (event.title + ': Clicked ');
    };
    /* message on Drop */
    $scope.alertOnDrop = function(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view){
        $scope.alertMessage = (event.title +': Droped to make dayDelta ' + dayDelta);
    };
    /* message on Resize */
    $scope.alertOnResize = function(event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ){
        $scope.alertMessage = (event.title +': Resized to make dayDelta ' + minuteDelta);
    };

    /* config object */
    $scope.uiConfig = {
        calendar:{
            height: 450,
            editable: true,
            header: {
                left: 'prev,next',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            eventClick: $scope.alertOnEventClick,
            eventDrop: $scope.alertOnDrop,
            eventResize: $scope.alertOnResize
        }
    };

    /* Event sources array */
    $scope.eventSources = [$scope.events];
}
/**
 * CalendarCtrl - Controller for Calendar
 * Store data events for calendar
 */
Controller for Calendar
Store data events for calendar
Controller for Calendar Store data events for calendar
function CalendarCtrl($scope) {
    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();
    $scope.events = [
        {title: 'All Day Event',start: new Date(y, m, 1)},
        {title: 'Long Event',start: new Date(y, m, d - 5),end: new Date(y, m, d - 2)},
        {id: 999,title: 'Repeating Event',start: new Date(y, m, d - 3, 16, 0),allDay: false},
        {id: 999,title: 'Repeating Event',start: new Date(y, m, d + 4, 16, 0),allDay: false},
        {title: 'Birthday Party',start: new Date(y, m, d + 1, 19, 0),end: new Date(y, m, d + 1, 22, 30),allDay: false},
        {title: 'Click for Google',start: new Date(y, m, 28),end: new Date(y, m, 29),url: 'http://google.com/'}
    ];
    $scope.alertOnEventClick = function( event, allDay, jsEvent, view ){
        $scope.alertMessage = (event.title + ': Clicked ');
    };
    $scope.alertOnDrop = function(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view){
        $scope.alertMessage = (event.title +': Droped to make dayDelta ' + dayDelta);
    };
    $scope.alertOnResize = function(event, dayDelta, minuteDelta, revertFunc, jsEvent, ui, view ){
        $scope.alertMessage = (event.title +': Resized to make dayDelta ' + minuteDelta);
    };
    $scope.uiConfig = {
        calendar:{
            height: 450,
            editable: true,
            header: {
                left: 'prev,next',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            eventClick: $scope.alertOnEventClick,
            eventDrop: $scope.alertOnDrop,
            eventResize: $scope.alertOnResize
        }
    };
    $scope.eventSources = [$scope.events];
}
function CalendarCtrl ( $scope ) { var date = new Date ( ) ; var d = date . getDate ( ) ; var m = date . getMonth ( ) ; var y = date . getFullYear ( ) ; $scope . events = [ { title : 'All Day Event' , start : new Date ( y , m , 1 ) } , { title : 'Long Event' , start : new Date ( y , m , d - 5 ) , end : new Date ( y , m , d - 2 ) } , { id : 999 , title : 'Repeating Event' , start : new Date ( y , m , d - 3 , 16 , 0 ) , allDay : false } , { id : 999 , title : 'Repeating Event' , start : new Date ( y , m , d + 4 , 16 , 0 ) , allDay : false } , { title : 'Birthday Party' , start : new Date ( y , m , d + 1 , 19 , 0 ) , end : new Date ( y , m , d + 1 , 22 , 30 ) , allDay : false } , { title : 'Click for Google' , start : new Date ( y , m , 28 ) , end : new Date ( y , m , 29 ) , url : 'http://google.com/' } ] ; $scope . alertOnEventClick = function ( event , allDay , jsEvent , view ) { $scope . alertMessage = ( event . title + ': Clicked ' ) ; } ; $scope . alertOnDrop = function ( event , dayDelta , minuteDelta , allDay , revertFunc , jsEvent , ui , view ) { $scope . alertMessage = ( event . title + ': Droped to make dayDelta ' + dayDelta ) ; } ; $scope . alertOnResize = function ( event , dayDelta , minuteDelta , revertFunc , jsEvent , ui , view ) { $scope . alertMessage = ( event . title + ': Resized to make dayDelta ' + minuteDelta ) ; } ; $scope . uiConfig = { calendar : { height : 450 , editable : true , header : { left : 'prev,next' , center : 'title' , right : 'month,agendaWeek,agendaDay' } , eventClick : $scope . alertOnEventClick , eventDrop : $scope . alertOnDrop , eventResize : $scope . alertOnResize } } ; $scope . eventSources = [ $scope . events ] ; }
CalendarCtrl - Controller for Calendar
 Store data events for calendar
CalendarCtrl - Controller for Calendar Store data events for calendar
// Events /* message on eventClick */ /* message on Drop */ /* message on Resize */ /* config object */ /* Event sources array */