1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00

All services and controllers are implemented.

This commit is contained in:
Gunther Brunner 2014-02-19 15:46:31 +09:00
parent ffce3d5beb
commit 3a284eca1f
12 changed files with 256 additions and 19 deletions

View 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
})
}