jsmodules / angular-material-calendar

A calendar directive for AngularJS and Angular Material Design
https://angular-material-calendar.bradb.net/
Mozilla Public License 2.0
182 stars 86 forks source link

Calendar not so smart #101

Open datanator opened 8 years ago

datanator commented 8 years ago

So if I would want to set the month of the calendarview there is no function for that. That makes navigating the calendar impossible.

I also cannot reset data from the calendar view: when I navigate to another month manually and I navigate back, my old values seem to have persisted. Though it sounds logical it is not: when I navigate my calendar I might want to fetch a months worth of data and update those days of the calendar that have data... but if I do not have data for a particular day the old data is still there.. that makes this calendar really unusable for dynamic data sets...

I will use the calendar with this handicap (and do some page refreshes, which works for now) but I would strongly suggest to build this calendar in such a way that it reflects a scoped variable that holds the calendar events. That would be the Angular way. Also, the calendar month should be a scoped variable so it would be easy to dynamically change which month to view with this calendar.

If one could trigger a refresh of the calendar which then would force setDayContent to retrieve all data to view that would be an intermediate solution. It would enable to build your own dataset and trigger the calendar to reflect that data...

just a silly idea...

j-ramirez-bi4group commented 7 years ago

+1