mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
12 lines
337 B
JavaScript
12 lines
337 B
JavaScript
define(['./module', 'oboe'], function(mod, oboe) {
|
|
mod.controller('DeviceListCtrl', ['$scope', function($scope) {
|
|
$scope.devices = []
|
|
|
|
oboe('/api/v1/devices')
|
|
.node('$devices[*]', function(devicesLoadedSoFar) {
|
|
$scope.$apply(function() {
|
|
$scope.devices = devicesLoadedSoFar
|
|
})
|
|
})
|
|
}])
|
|
})
|