mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 06:53:39 +02:00
18 lines
379 B
JavaScript
18 lines
379 B
JavaScript
define(['./module'], function(mod) {
|
|
function DeviceControlCtrl($scope, $routeParams, deviceService) {
|
|
$scope.device = null
|
|
|
|
deviceService.get($routeParams.serial)
|
|
.then(function(device) {
|
|
$scope.device = device
|
|
})
|
|
}
|
|
|
|
mod.controller('DeviceControlCtrl'
|
|
, [ '$scope'
|
|
, '$routeParams'
|
|
, 'deviceService'
|
|
, DeviceControlCtrl
|
|
])
|
|
})
|