-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
33 lines (29 loc) · 1007 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
32
33
(function () {
'use strict';
angular
.module('myApp', ['ngRoute'])
.config(ConfigConfig)
/** @ngInject */
function ConfigConfig($routeProvider, $locationProvider) {
$locationProvider.html5Mode(false).hashPrefix('');
$routeProvider
.when('/', {
templateUrl: "app/home/index.html",
controller: "homeController",
controllerAs: "home"
})
.when('/home', {
templateUrl: "app/home/index.html",
controller: "homeController",
controllerAs: "home"
})
.when('/contact', {
templateUrl: "app/contact/index.html",
controller: "contactController",
controllerAs: "contact"
})
.otherwise({
template: "<h1>None</h1><p>The page you are looking for is not exist anymore or haven't been created yet.</p>"
});
}
}());