twinssbc / AngularJS-ResponsiveCalendar

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

Clicking day navigate to weekview #41

Open ben-power opened 8 years ago

ben-power commented 8 years ago

Is it possible to click on a date in monthview and have it navigate to the weekview of that day? Or the dayview for that date?

twinssbc commented 8 years ago

@benben10 It's possible, in the timeSelected callback function, you can change the $scope.mode. For example,

    $scope.onTimeSelected = function (selectedTime) {
        if($scope.mode === 'month') {
            $scope.mode = 'day';
        }
    };