I'm having quite of an issue here. I use ocLazyLoader to load full calendar and it works well, but when ever I'm trying to include fullCalendar-scheduler as well i'm having this error in JavaScript.
Uncaught TypeError: Cannot set property 'schedulerVersion' of undefined
It looks like it cannot set a variable equals to $.fullCalendar
in the source code of the plugins.
Here are how I instanciate my files :
resolve: {
resources: function($ocLazyLoad) {
return $ocLazyLoad.load([
ASSETS.forms.multiSelect
])
},fullCalendarScheduler: function($ocLazyLoad){
return $ocLazyLoad.load([
ASSETS.core.moment,
ASSETS.extra.scheduler,
]);
},
fullCalendar: function($ocLazyLoad){
return $ocLazyLoad.load([
ASSETS.extra.fullCalendar
]);
},
}
I pass the correct value aswell in the controller.
controller('AccueilCtrl', ['$scope', '$filter', 'fullCalendar', 'fullCalendarScheduler', function($scope, $filter, fullCalendar, fullCalendarScheduler) {
Any ideas on how to fix this?