{"size": 990, "ext": "js", "max_stars_repo_path": "public/scripts/app.js", "max_stars_repo_name": "riagrawal/Smart_city_accident_prediction", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/scripts/app.js", "max_issues_repo_name": "riagrawal/Smart_city_accident_prediction", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/scripts/app.js", "max_forks_repo_name": "riagrawal/Smart_city_accident_prediction", "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": 30.0, "max_line_length": 129, "alphanum_fraction": 0.5585858586}
      angular.module('app', ['ngSanitize', 'toggle-switch', 'ui-notification']);
      angular.module('main', [
    'app',
    'ngRoute',
    'ngCookies'
])

.config(['$routeProvider', function ($routeProvider) {

    $routeProvider
 
        .when('/', {
            controller: 'mainController',
            templateUrl: 'modules/dashboard/views/predict.html'
        })
        .when('/dashboard', {
            controller: 'mainController',
            templateUrl: 'modules/dashboard/views/dashboard.html'
        });

}]);
 
// .run(['$rootScope', '$location', '$cookieStore', '$http',
//     function ($rootScope, $location, $cookieStore, $http) {
//         // keep user logged in after page refresh
//         $rootScope.globals = $cookieStore.get('globals') || {};
//         if ($rootScope.globals.currentUser) {
//             $http.defaults.headers.common['login'] = 'Basic ' + $rootScope.globals.currentUser.authdata; // jshint ignore:line
//         }
 
        
//     }]);
