Using fullcalendar-scheduler with an Angular-Cli project

I am trying to evaluate the use of fullcalendar-scheduler in my Angular 4 project that uses angular-cli. I managed to get the fullcalendar full duty cycle, but they tried to get resources on the calendar using the scheduler. I installed the scheduler via npm install fullcalendar-scheduler should do the trick. The following calendar options were added, but resources were not displayed

 resources: [
  { id: 'a', title: 'Room A' },
  { id: 'b', title: 'Room B' },
  { id: 'c', title: 'Room C' },
  { id: 'd', title: 'Room D' }
],

Finally, I tried to include a link to scheduler.min.js in my index.html, and this did the trick. Resources began to appear. My questions are: how can I make it work without explicitly referencing the javascript scheduler in my index.js?

+4
source share

Source: https://habr.com/ru/post/1680486/


All Articles