-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmediSense.config.js
36 lines (34 loc) · 1.09 KB
/
mediSense.config.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
34
35
36
'use strict';
var app = angular.module('mediSenseApp').
config(['$locationProvider', '$routeProvider',
function config($locationProvider, $routeProvider) {
// $locationProvider.hashPrefix('!');
$routeProvider.
when('/home', {
templateUrl: 'home/home.template.html',
controller: 'home-ctrl'
}).
when('/allMeds', {
templateUrl: 'allMeds/all-meds.template.html',
controller: 'all-meds-ctrl'
}).
when('/body', {
templateUrl: 'body/body.template.html',
controller: 'body-ctrl'
}).
when('/medDetail/:id', {
templateUrl: 'allMeds/med-detail.template.html',
controller: 'medDetailCont'
}).
when('/symptom', {
templateUrl: 'searchSymptom/searchSymptom.template.html',
controller: 'symptom-ctrl'
}).
when('/symptomDetail/:id/:type', {
templateUrl: 'searchSymptom/symptom-detail.template.html',
controller: 'symptomDetail-ctrl'
}).
otherwise('/home');
}
])
.controller();