mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-22 00:35:15 +02:00
Implement device screen.
This commit is contained in:
@@ -3,10 +3,11 @@ define(['./_module'], function(app) {
|
||||
$scope.device = null
|
||||
$scope.control = null
|
||||
|
||||
deviceService.get($routeParams.serial)
|
||||
$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