# ui-calendar **Repository Path**: mirrors_linslin/ui-calendar ## Basic Information - **Project Name**: ui-calendar - **Description**: A complete AngularJS directive for the Arshaw FullCalendar. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ui-calendar directive [](https://travis-ci.org/angular-ui/ui-calendar) [](https://gitter.im/angular-ui/ui-calendar?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) A complete AngularJS directive for the Arshaw FullCalendar. # Requirements - ([AngularJS](http://code.angularjs.org/1.2.1/angular.js)) - ([fullcalendar.js 2.0 and it's dependencies](http://arshaw.com/fullcalendar/download/)) - optional - ([gcal-plugin](http://arshaw.com/js/fullcalendar-1.5.3/fullcalendar/gcal.js)) # Usage Using [bower](http://bower.io) run: bower install --save angular-ui-calendar Alternatively you can add it to your `bower.json` like this: dependencies: { "angular-ui-calendar": "latest" } And then run bower install This will copy the ui-calendar files into your `components` folder, along with its dependencies. Load the script and style files in your application: Add the calendar module as a dependency to your application module: var app = angular.module('App', ['ui.calendar']) Apply the directive to your div elements. The calendar must be supplied an array of documented event sources to render itself:
Define your model in a scope e.g. $scope.eventSources = []; ## Options All the Arshaw Fullcalendar options can be passed through the directive. This even means function objects that are declared on the scope. myAppModule.controller('MyController', function($scope) { /* 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 } }; });