22 lines
No EOL
520 B
JavaScript
22 lines
No EOL
520 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) {
|
|
|
|
}); |