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',
|
templateUrl: 'partials/image/image.html',
|
||||||
controller: 'imageCtrl'
|
controller: 'imageCtrl'
|
||||||
}).otherwise({
|
}).otherwise({
|
||||||
redirectTo: '/home'
|
redirectTo: '/'
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
|
@ -22,17 +22,17 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Image.getImages(function(){});
|
Image.getImages(function(){});
|
||||||
|
|
||||||
|
|
||||||
$scope.raiseShowMachineDetailsEvent=function(id){
|
$scope.raiseShowMachineDetailsEvent=function(id){
|
||||||
|
|
||||||
var callback=function(){
|
var callback=function(){
|
||||||
Loading.stop();
|
Loading.stop();
|
||||||
var data=Compute.getData();
|
var data=Compute.getData();
|
||||||
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[id], data.axioms);
|
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[id], data.axioms);
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading.start();
|
Loading.start();
|
||||||
Compute.pullMachines(callback);
|
Compute.pullMachines(callback);
|
||||||
|
|
Loading…
Add table
Reference in a new issue