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

viewRender is not working ui-calendar #410

Closed hardikpanseriya closed 8 years ago

hardikpanseriya commented 8 years ago
<div ui-calendar="{{uiConfig.calendar}}" calendar="simbaCalendar" ng-model="eventSources">
</div>

I have used remote url to fetch events.

$scope.uiConfig = {
        calendar:{
            height: 450,
            editable: false,
            stick: true,
            header:{
                left: 'prev,next today',
                center: 'title',
                right: 'month,basicWeek,basicDay'
            },
            viewRender: function(view, element) {
                $log.debug("View Changed: ", view.visStart, view.visEnd, view.start, view.end);
            }
        }
    };

viewRender is not working into uiConfig object. $log.debug is not print in console. Please help me.

Thanks.

devntd commented 8 years ago

I think should change: ui-calendar="{{uiConfig.calendar}}" to ui-calendar="uiConfig.calendar"

hardikpanseriya commented 8 years ago

Working very well...Thanks