"use strict"

var schoolines = angular.module("schoolines", [
    "ngRoute","ngMaterial", "ngCookies", "ngResource", "ngStorage"
]);

schoolines.config(["$routeProvider", "$locationProvider", "$mdThemingProvider",
    function($routeProvider, $locationProvider, $mdThemingProvider) {
        $routeProvider.
        when("/", {
            templateUrl: "/app/components/index/index.html",
            controller: "indexController",
            resolve: {
                isAuthenticated: function(AuthService) {
                    // return AuthService.isAuthenticated();
                }
            }
        }).
        when("/deadlineCreate", {
            templateUrl: "/app/components/deadlineCreate/deadlineCreate.html",
            controller: "deadlineCreateController",
        }).
        when("/deadlineDetail",{
            templateUrl: "/app/components/deadlineDetail/deadlineDetail.html",
            controller: "deadlineDetailController"
        }).
        otherwise({
            redirectTo: "/"
        });

        $mdThemingProvider.theme('default').primaryPalette('red');
    	$mdThemingProvider.enableBrowserColor({
          theme: 'default', // Default is 'default'
          palette: 'red', // Default is 'primary', any basic material palette and extended palettes are available
          hue: '200' // Default is '800'
        });
    }
]);

schoolines.run();

"use strict"

var schoolines = angular.module("schoolines", [
    "ngRoute","ngMaterial", "ngCookies", "ngResource", "ngStorage"
]);

schoolines.config(["$routeProvider", "$locationProvider", "$mdThemingProvider", "$location",
    function($routeProvider, $locationProvider, $mdThemingProvider, $location) {
        $routeProvider.
        when("/", {
            templateUrl: "/app/components/index/index.html",
            controller: "indexController",
            resolve: {
                isAuthenticated: function(AuthService) {
                    // return AuthService.isAuthenticated();
                }
            }
        }).
        when("/deadlineCreate", {
            templateUrl: "/app/components/deadlineCreate/deadlineCreate.html",
            controller: "deadlineCreateController",
        }).
        when("/deadlineDetail",{
            templateUrl: "/app/components/deadlineDetail/deadlineDetail.html",
            controller: "deadlineDetailController"
        }).
        otherwise({
            redirectTo: "/"
        });

        $mdThemingProvider.theme('default').primaryPalette('red');
    	$mdThemingProvider.enableBrowserColor({
          theme: 'default', // Default is 'default'
          palette: 'red', // Default is 'primary', any basic material palette and extended palettes are available
          hue: '200' // Default is '800'
        });
    }
]);

schoolines.run();

add location