angular-ui / ui-calendar

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

eventSources must be an array of arrays. #259

Open getsetbro opened 9 years ago

getsetbro commented 9 years ago

"ui-calendar Directive takes in the [eventSources] nested array object as the ng-model and watches it deeply changes."

I am trying to use this directive in a repeat of tabs and I won't know how many the user will create. I need to point the model to a single array of events. Since this directive uses eventSources and not events I have to wrap my data in an extra array.

joshkurz commented 9 years ago

I have seen so many issues with this. Maybe we should allow for both eventSources and events. I mean we allow function. @getsetbro you want to create a PR for this?

getsetbro commented 9 years ago

I'm thinking about it. I probably wouldn't be the fastest at it.