Test
This commit is contained in:
parent
8eafc905a9
commit
575b8ea4b6
2 changed files with 38 additions and 12 deletions
|
@ -10,14 +10,18 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', function ($s
|
|||
// TODO Update graph etc...
|
||||
}
|
||||
|
||||
// Retrieve all Data
|
||||
Compute.pullData(updatePage);
|
||||
|
||||
Compute.getMachines(function(adzda){});
|
||||
|
||||
|
||||
|
||||
$scope.raiseShowMachineDetailsEvent=function(){
|
||||
var machine={name: "Machine 1", online:true};
|
||||
$rootScope.$broadcast("showMachineDetailsEvent", machine);
|
||||
var callback=function(){
|
||||
var data=Compute.getData();
|
||||
console.log(data.machines[Object.keys(data.machines)[0]]);
|
||||
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[Object.keys(data.machines)[0]]);
|
||||
|
||||
}
|
||||
Compute.pullMachines(callback);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue