Populating RadCalendar with data using Vue-CLI stack

plugins

#1

Hi,

I am having this problem for a while now. I set eventSource tag to take events from a events variable (Vue’s data variable). On created(), I populate this variable (array) with events like so:

      for (let i = 0, j = 1; i < 10; i++, j++) {
        let now = new Date()
        let startDate = new Date(now.getFullYear(), now.getMonth(), j * 2)
        let endDate = new Date(now.getFullYear(), now.getMonth(), (j * 2) + (j % 3))
        let event = new calendarModule.CalendarEvent('Test', startDate, endDate)
        this.calendarEvents.push(event)
      }

No errors in the console, the app works perfectly normal. Any clues what did I wrong here?


#2

Okey, it turned out that the problem was dead simple. I added the eventSource attr like that eventSource="", what I forgot about was that Vue needs a : before the attr name, like so :eventSource="".