mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-22 00:35:15 +02:00
Initial device control implementation. Works with touches and NUMERIC keycodes.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
define(['./_module'], function(controllers) {
|
||||
function DeviceControlCtrl($scope, $routeParams, deviceService) {
|
||||
function DeviceControlCtrl($scope, $routeParams, deviceService, controlService) {
|
||||
$scope.device = null
|
||||
$scope.control = null
|
||||
|
||||
deviceService.get($routeParams.serial)
|
||||
.then(function(device) {
|
||||
$scope.device = device
|
||||
$scope.control = controlService.forChannel(device.channel)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -12,6 +14,7 @@ define(['./_module'], function(controllers) {
|
||||
, [ '$scope'
|
||||
, '$routeParams'
|
||||
, 'DeviceService'
|
||||
, 'ControlService'
|
||||
, DeviceControlCtrl
|
||||
])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user