In the middle of a big refactoring.

This commit is contained in:
Gunther Brunner
2014-02-14 20:17:23 +09:00
parent 1de3621b18
commit 61a7b9ded6
12 changed files with 92 additions and 51 deletions

View File

@@ -1,21 +1,21 @@
define(['./app'], function(app) {
return app.config([
'$routeProvider'
, '$locationProvider'
, function($routeProvider, $locationProvider) {
$locationProvider.hashPrefix('!')
$routeProvider
.when('/devices', {
templateUrl: 'partials/devices/index'
, controller: 'DeviceListCtrl'
})
.when('/devices/:serial', {
templateUrl: 'partials/devices/control'
, controller: 'DeviceControlCtrl'
})
.otherwise({
redirectTo: '/devices'
})
}
])
})
require('angular')
require('angular-route')
var app = require('./app')
app.config([
'$routeProvider', '$locationProvider'
, function ($routeProvider, $locationProvider) {
$locationProvider.hashPrefix('!')
$routeProvider
.when('/devices', {
templateUrl: 'partials/devices/index', controller: 'DeviceListCtrl'
})
.when('/devices/:serial', {
templateUrl: 'partials/devices/control', controller: 'DeviceControlCtrl'
})
.otherwise({
redirectTo: '/devices'
})
}
]);