mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Attempting to make it easier to work with a single device. Still not bound to the new controlService.
This commit is contained in:
parent
37303c5d92
commit
36d0af71b5
11 changed files with 141 additions and 75 deletions
17
res/app/scripts/controllers/DeviceControlCtrl.js
Normal file
17
res/app/scripts/controllers/DeviceControlCtrl.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
define(['./module'], function(mod) {
|
||||
function DeviceControlCtrl($scope, $routeParams, deviceService) {
|
||||
$scope.device = null
|
||||
|
||||
deviceService.get($routeParams.serial)
|
||||
.then(function(device) {
|
||||
$scope.device = device
|
||||
})
|
||||
}
|
||||
|
||||
mod.controller('DeviceControlCtrl'
|
||||
, [ '$scope'
|
||||
, '$routeParams'
|
||||
, 'deviceService'
|
||||
, DeviceControlCtrl
|
||||
])
|
||||
})
|
|
@ -1,5 +1,6 @@
|
|||
define([
|
||||
'./DeviceListCtrl'
|
||||
, './DeviceControlCtrl'
|
||||
]
|
||||
, function() {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue