twinssbc / AngularJS-ResponsiveCalendar

A pure AngularJS responsive calendar directive
http://twinssbc.github.io/AngularJS-ResponsiveCalendar/demo/
MIT License
112 stars 77 forks source link

Added event handler to change date from external functions. #27

Closed AlexSwensen closed 9 years ago

AlexSwensen commented 9 years ago

Added event handler to change date from external functions.

An example would be:

// this would move the day forward
$scope.$broadcast('changeDate', 1); 
// this would move the day backward
$scope.$broadcast('changeDate', -1);

I found this useful for creating my own controls, especially if one doesn't wish to use the built in ones, and disables them in code. Hopefully you will find it useful as well.

twinssbc commented 9 years ago

@AlexSwensen this looks great. Thanks!