mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Shortcut {modules,services} to app.
This commit is contained in:
parent
06fd5bc722
commit
a2dd5ad0c7
7 changed files with 14 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['./_module'], function(controllers) {
|
||||
define(['./_module'], function(app) {
|
||||
function DeviceControlCtrl($scope, $routeParams, deviceService, controlService) {
|
||||
$scope.device = null
|
||||
$scope.control = null
|
||||
|
@ -10,7 +10,7 @@ define(['./_module'], function(controllers) {
|
|||
})
|
||||
}
|
||||
|
||||
controllers.controller('DeviceControlCtrl'
|
||||
app.controller('DeviceControlCtrl'
|
||||
, [ '$scope'
|
||||
, '$routeParams'
|
||||
, 'DeviceService'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(['./_module'], function(controllers) {
|
||||
define(['./_module'], function(app) {
|
||||
function DeviceListCtrl($scope, deviceService, groupService) {
|
||||
$scope.devices = deviceService.devices
|
||||
|
||||
|
@ -21,7 +21,7 @@ define(['./_module'], function(controllers) {
|
|||
}
|
||||
}
|
||||
|
||||
controllers.controller('DeviceListCtrl'
|
||||
app.controller('DeviceListCtrl'
|
||||
, [ '$scope'
|
||||
, 'DeviceService'
|
||||
, 'GroupService'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue