Attempting to make it easier to work with a single device. Still not bound to the new controlService.

This commit is contained in:
Simo Kinnunen
2014-02-05 11:08:37 +09:00
parent 37303c5d92
commit 36d0af71b5
11 changed files with 141 additions and 75 deletions

View File

@@ -3,14 +3,18 @@ define(['./app'], function(app) {
'$routeProvider'
, '$locationProvider'
, function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true)
$locationProvider.hashPrefix('!')
$routeProvider
.when('/', {
templateUrl: 'partials/deviceList'
.when('/devices', {
templateUrl: 'partials/devices/index'
, controller: 'DeviceListCtrl'
})
.when('/devices/:serial', {
templateUrl: 'partials/devices/control'
, controller: 'DeviceControlCtrl'
})
.otherwise({
redirectTo: '/'
redirectTo: '/devices'
})
}
])