-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.js
More file actions
26 lines (23 loc) · 749 Bytes
/
app.js
File metadata and controls
26 lines (23 loc) · 749 Bytes
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
'use strict';
(function(){
angular.module('myApp', [ 'ngRoute', 'ngSanitize', 'ngStorage', 'ui.bootstrap', 'angularModalService' ]);
angular.module('myApp').config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: "templates/home.html",
controller: 'CharacterController'
})
.when('/character', {
templateUrl: "templates/character.html",
controller: 'CharacterController'
})
.when('/spells', {
templateUrl: "templates/spells.html",
controller: 'SpellsController'
})
.when('/kihos', {
templateUrl: "templates/kihos.html",
controller: 'KihosController'
})
.otherwise({redirectTo: '/'});
}]);//end routes
})();//end myApp