-
Notifications
You must be signed in to change notification settings - Fork 21
/
app.js
31 lines (29 loc) · 961 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(function(){
var app = angular.module("site", ["ngRoute", "ngTable", "termIndex", "firebase", "pascalprecht.translate"]);
app.controller("NavController", function($location){
this.isActive = function(viewLocation){
return viewLocation === $location.path();
}
});
app.config(function($routeProvider){
$routeProvider
.when("/home",{
templateUrl: "./home/home.html",
controller: "HomeController as HomeCtrl"
})
.when("/creator",{
templateUrl: "./char_creator/charCreator.html",
controller: "CharCreatorController as creatorCtrl"
})
.when("/freecreator",{
templateUrl: "./free_creator/freeCreator.html",
controller: "CharCreatorController as creatorCtrl"
})
.when("/glossary",{
templateUrl: "./glossary/glossary.html",
controller: "GlossaryController as glossCtrl"
})
.otherwise({redirectTo:"/home"});
});
}()
);