In the middle of a big refactoring.

This commit is contained in:
Gunther Brunner
2014-02-14 20:17:23 +09:00
parent 1de3621b18
commit 61a7b9ded6
12 changed files with 92 additions and 51 deletions

View File

@@ -0,0 +1,20 @@
module.exports = function DeviceListCtrl($scope, deviceService, groupService) {
$scope.devices = deviceService.devices
$scope.invite = function (device) {
groupService.invite({
serial: {
value: device.serial, match: 'exact'
}
})
}
$scope.kick = function (device) {
groupService.kick({
serial: {
value: device.serial, match: 'exact'
}
})
}
}