Front-end path redefinition
This commit is contained in:
parent
11dc33c440
commit
a2f120aa73
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ mainApp.config(['$routeProvider', function($routeProvider){
|
|||
templateUrl: 'partials/image/image.html',
|
||||
controller: 'imageCtrl'
|
||||
}).otherwise({
|
||||
redirectTo: '/home'
|
||||
redirectTo: '/'
|
||||
});
|
||||
}]);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue