search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Month, StartDate, and Angular

Asked by Craig
9 years ago.

It doesn't appear that setting $scope.config.startDate in the controller does not automatically refresh the calendar like it does with scheduler.

How do I dynamically reset the start date from a controller when using the month view?

Comment posted by Anonymous
9 years ago.

I may have found the answer: http://doc.daypilot.org/month/angularjs/

It seems the DayPilot control can be accessed from the $scope:
$scope.message = function() {
$scope.dp.message("Hi");
};

Given that, you should be able to set the startDate (or any property for that matter) and then call $scope.dp.update().

BTW: I believe the "dp" property off the $scope object is derived from the id attribute used in the DayPilot directive in the HTML.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.