angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 729 forks source link

Can't get current date #439

Open avastamin opened 7 years ago

avastamin commented 7 years ago

$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.

NicoJuicy commented 7 years ago

What is your html?

senthilkumar04 commented 7 years ago

is the calendar initialized ?

CurtisVayne commented 7 years ago

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>