2015-12-24 05:29:04 +00:00
|
|
|
var app = angular.module("easyctf", [ "ngRoute" ]);
|
|
|
|
app.config(function($routeProvider) {
|
|
|
|
$routeProvider.when("/", {
|
|
|
|
templateUrl: "pages/home.html",
|
|
|
|
controller: "mainController"
|
|
|
|
})
|
|
|
|
.when("/about", {
|
|
|
|
templateUrl: "pages/about.html",
|
|
|
|
controller: "mainController"
|
|
|
|
})
|
|
|
|
.when("/register", {
|
|
|
|
templateUrl: "pages/register.html",
|
|
|
|
controller: "mainController"
|
|
|
|
})
|
|
|
|
.when("/login", {
|
|
|
|
templateUrl: "pages/login.html",
|
|
|
|
controller: "mainController"
|
|
|
|
})
|
2015-12-23 22:34:22 +00:00
|
|
|
});
|
2015-12-24 05:29:04 +00:00
|
|
|
app.controller("mainController", function($scope) {
|
|
|
|
|
|
|
|
});
|