Switch to a more consistent naming convention for services and resource loading.

This commit is contained in:
Simo Kinnunen
2014-02-05 17:37:32 +09:00
parent 91097dc569
commit 6893abdb75
14 changed files with 39 additions and 39 deletions

View File

@@ -1,4 +1,4 @@
define(['./module'], function(mod) {
define(['./_module'], function(controllers) {
function DeviceControlCtrl($scope, $routeParams, deviceService) {
$scope.device = null
@@ -8,10 +8,10 @@ define(['./module'], function(mod) {
})
}
mod.controller('DeviceControlCtrl'
controllers.controller('DeviceControlCtrl'
, [ '$scope'
, '$routeParams'
, 'deviceService'
, 'DeviceService'
, DeviceControlCtrl
])
})

View File

@@ -1,4 +1,4 @@
define(['./module'], function(mod) {
define(['./_module'], function(controllers) {
function DeviceListCtrl($scope, deviceService, groupService) {
$scope.devices = deviceService.devices
@@ -21,10 +21,10 @@ define(['./module'], function(mod) {
}
}
mod.controller('DeviceListCtrl'
controllers.controller('DeviceListCtrl'
, [ '$scope'
, 'deviceService'
, 'groupService'
, 'DeviceService'
, 'GroupService'
, DeviceListCtrl
])
})