On GitHub, angular-ui/ui-calendar has picked up 1.5k stars, JavaScript. A complete AngularJS directive for the Arshaw FullCalendar.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
The ui-calendar directive plays nicely with ng-model.
An Event Sources object needs to be created to pass into ng-model. This object's values will be watched for changes. If a change occurs, then that specific calendar will call the appropriate fullCalendar method.
The ui-calendar directive expects the eventSources object to be any type allowed in the documentation for the fullcalendar. docs
Note that all calendar options which are functions that are passed into the calendar are wrapped in an apply automatically.
Accessing the calendar object
It is possible to access a specific calendar object by declaring a name for it on the uiCalendar directive. In this next line we are naming the calendar 'myCalendar'. This will be attached to the uiCalendarConfig constant object, that can be accessed via DI.
Now the calendar object is available in uiCalendarConfig.calendars:
uiCalendarConfig.calendars.myCalendar
This allows you to declare any number of calendar objects with distinct names.
Custom event rendering
You can use fullcalendar's eventRender option to customize how events are rendered in the calendar.
However, only certain event attributes are watched for changes (they are id, title, url, start, end, allDay, and className).
If you need to automatically re-render other event data, you can use calendar-watch-event.
calendar-watch-event expression must return a function that is passed event as argument and returns a string or a number, for example:
$scope.extraEventSignature = function(event) {
returns "" + event.price;
}
<ui-calendar calendar-watch-event="extraEventSignature(event)" ... >
// will now watch for price
Adding new events issue
When adding new events to the calendar they can disappear when switching months. To solve this add stick: true to the event object being added to the scope.
Watching the displayed date range of the calendar
There is no mechanism to $watch the displayed date range on the calendar due to the JQuery nature of fullCalendar. If you want
to track the dates displayed on the calendar so you can fetch events outside the scope of fullCalendar (Say from a caching store
in a service, instead of letting fullCalendar pull them via AJAX), you can add the viewRender callback to the calendar config.
TopGit's last sync did not record any GitHub topics for angular-ui/ui-calendar. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on angular-ui/ui-calendar?
The most recent commit recorded on angular-ui/ui-calendar was 7.6 years ago, based on the GitHub push timestamp. The repository has 711 forks — one of the better signals of community interest.
How many stars does angular-ui/ui-calendar have?
angular-ui/ui-calendar has 1.5k GitHub stars — refresh the page for the live number, or check github.com/angular-ui/ui-calendar. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is angular-ui/ui-calendar open source?
Yes — angular-ui/ui-calendar ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/angular-ui/ui-calendar.
Where can I see angular-ui/ui-calendar in action?
The project maintains a homepage at http://angular-ui.github.io/ui-calendar/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about angular-ui/ui-calendar?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/angular-ui/ui-calendar is the definitive source.
Read full README in the tab above.
Still deciding about ui-calendar?
One click hands the question to an AI along with this page — see what it says about ui-calendar.