mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
11 lines
371 B
JavaScript
11 lines
371 B
JavaScript
module.exports = function DeviceControlCtrl($scope, $routeParams, DeviceService, ControlService) {
|
|
$scope.control = null
|
|
$scope.device = {
|
|
promise: DeviceService.get($routeParams.serial)
|
|
.then(function(device) {
|
|
$scope.device.value = device
|
|
$scope.control = ControlService.forOne(device, device.channel)
|
|
return device
|
|
})
|
|
}
|
|
}
|