ui-calendar
ui-calendar copied to clipboard
Can't get current date
$scope.calendarConfig = { calendar: { allDaySlot: false, timezone: 'local', editable: true, lang: 'de', eventOrder: "-title", height: 650, header: { left: 'title', center: 'Custom text', right: 'today prev,next' }, eventClick: $scope.eventClick, eventResizeStop: $scope.alertResize, eventDragStop: $scope.alertDrag, eventRender: $scope.eventRender, dayClick: $scope.dayClick } };
I tried to get uiCalendarConfig.calendars.medi_calendar
but getting error uiCalendarConfig not configured.
What is your html?
is the calendar initialized ?
in the html do you have this? i mean, the configuration settings.
<div class="calendar" ng-model="eventSources" calendar="myCalendar1" ui-calendar="uiCalendarConfig.calendar"></div>