First package works.

This commit is contained in:
Gunther Brunner
2014-02-17 22:13:55 +09:00
parent 61a7b9ded6
commit a771952339
11 changed files with 77 additions and 36 deletions

View File

@@ -1,8 +1,11 @@
module.exports = function DeviceListCtrl($scope, deviceService, groupService) {
module.exports = function DeviceListCtrl($scope) {
$scope.devices = deviceService.devices
$scope.devices = [
{serial: '1231231', present: true, owner: {email: 'fefe@f.com'}},
{serial: '123122', present: true, owner: {email: 'fefe2@f.com'}}
];
$scope.invite = function (device) {
$scope.invite = function (device) {
groupService.invite({
serial: {
value: device.serial, match: 'exact'
@@ -17,4 +20,27 @@ module.exports = function DeviceListCtrl($scope, deviceService, groupService) {
}
})
}
}
};
//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'
// }
// })
// }
//}