mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
All services and controllers are implemented.
This commit is contained in:
11
res/app/device-control/device-control-controller.js
Normal file
11
res/app/device-control/device-control-controller.js
Normal file
@@ -0,0 +1,11 @@
|
||||
module.exports = function DeviceControlCtrl($scope, $routeParams, DeviceService, ControlService) {
|
||||
$scope.device = null
|
||||
$scope.control = null
|
||||
|
||||
$scope.promiseOfDevice = DeviceService.get($routeParams.serial)
|
||||
.then(function (device) {
|
||||
$scope.device = device
|
||||
$scope.control = ControlService.forChannel(device.channel)
|
||||
return device
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user