23 lines
521 B
JavaScript
23 lines
521 B
JavaScript
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"
|
|
})
|
|
});
|
|
app.controller("mainController", function($scope) {
|
|
|
|
});
|