angular-simple-calendar icon indicating copy to clipboard operation
angular-simple-calendar copied to clipboard

How can I add a new event to to the calendar dynamically?

Open mikemil opened this issue 8 years ago • 1 comments

Hi, First, thank you for this tool/calender, it fits perfectly for what I am doing.

When a user clicks on a date without an event, I am using that dateClick method to add an event to my database, but the question is - how can I add the new single event to the calendar and get it show WITHOUT having to refresh the page to get the list of events again in order to see my new event on the page? Yes, I am new to Angular!

mikemil avatar Aug 27 '16 02:08 mikemil

I got it working and all I had to do was implement that simple one-line pull request #10. Added my new event to the events collection in the scope AND changed the watch on events to watchCollection!

mikemil avatar Aug 27 '16 03:08 mikemil