1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00
OpenSTF/res/app/scripts/controllers/DeviceListCtrl.js
2014-01-31 05:10:38 +09:00

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