-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
executable file
·31 lines (29 loc) · 914 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
var app = angular.module('app', ['ngRoute', 'ngMaterial', 'ngCookies', 'iconolater']);
app.config(function($routeProvider, $locationProvider) {
$routeProvider
.when('/specimen/:specimenId', {
templateUrl: 'specimen/specimen.html',
controller: 'SpecimenController'
})
.when('/specimen/:specimenId/perspective/create', {
templateUrl: 'perspective/create.html',
controller: 'PerspectiveCreateController'
})
.when('/specimen/:specimenId/perspective/edit/:perspectiveId', {
templateUrl: 'perspective/edit.html',
controller: 'PerspectiveEditController'
})
.when('/login', {
templateUrl: 'login/login.html',
controller: 'AppController'
})
.otherwise({
templateUrl: 'chapter/chapter.html',
controller: 'ChapterController'
});
});
app.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('teal')
.accentPalette('grey');
});