Front-end path redefinition

This commit is contained in:
Apache 2016-03-16 11:11:25 +01:00
parent 11dc33c440
commit a2f120aa73
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ mainApp.config(['$routeProvider', function($routeProvider){
templateUrl: 'partials/image/image.html',
controller: 'imageCtrl'
}).otherwise({
redirectTo: '/home'
redirectTo: '/'
});
}]);

View file

@ -22,17 +22,17 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I
}
}
Image.getImages(function(){});
$scope.raiseShowMachineDetailsEvent=function(id){
var callback=function(){
Loading.stop();
var data=Compute.getData();
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[id], data.axioms);
}
Loading.start();
Compute.pullMachines(callback);