Implement device screen.

This commit is contained in:
Simo Kinnunen
2014-02-06 22:45:19 +09:00
parent a2dd5ad0c7
commit d17e86bc57
9 changed files with 317 additions and 1 deletions

View File

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