mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 01:03:30 +02:00
Switch to a more consistent naming convention for services and resource loading.
This commit is contained in:
@@ -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
|
||||
])
|
||||
})
|
||||
|
||||
@@ -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
|
||||
])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user