mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
define(['./_module'], function(controllers) {
|
|
function DeviceControlCtrl($scope, $routeParams, deviceService) {
|
|
$scope.device = null
|
|
|
|
deviceService.get($routeParams.serial)
|
|
.then(function(device) {
|
|
$scope.device = device
|
|
})
|
|
}
|
|
|
|
controllers.controller('DeviceControlCtrl'
|
|
, [ '$scope'
|
|
, '$routeParams'
|
|
, 'DeviceService'
|
|
, DeviceControlCtrl
|
|
])
|
|
})
|