{"size": 522, "ext": "js", "max_stars_repo_path": "www/js/controllers/calendar.js", "max_stars_repo_name": "tabman83/netplanning-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "www/js/controllers/calendar.js", "max_issues_repo_name": "tabman83/netplanning-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "www/js/controllers/calendar.js", "max_forks_repo_name": "tabman83/netplanning-client", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.7272727273, "max_line_length": 91, "alphanum_fraction": 0.5593869732}
angular.module('NetPlanningApp').controller('CalendarCtrl', function($scope, $ionicModal) {

    $ionicModal.fromTemplateUrl('templates/day.html', {
        scope: $scope
    }).then(function(modal) {
        $scope.modal = modal;
    });

    //Cleanup the modal when we're done with it!
    $scope.$on('$destroy', function() {
        $scope.modal.remove();
    });

    $scope.open = function(items) {
        if(items.length) {
            $scope.details = items;
            $scope.modal.show();
        }
    }

});
