I'm trying to make a calendar application using backbone.js. I have some difficulties in rendering the calendar. I can't decide whether to have one month model which will keep all the data or to have a day model and a collection of day models. Which is the best way to structure my code? Can you give me some advice?
Welcome to Sitepoint
Start with only things you want to persist, maybe you don't need months or days, only the events that you put on a calendar.
I find it easier starting with the views. My only advice would be to try to keep as few models/views/routers as possible.
This topic is now closed. New replies are no longer allowed.