Displaying error message in queue if fails

This commit is contained in:
Gaël Métais
2014-12-29 22:55:52 +01:00
parent f601044645
commit be2911707c
6 changed files with 61 additions and 15 deletions
@@ -12,6 +12,8 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
$rootScope.loadedResult = result;
$scope.result = result;
init();
}, function(err) {
alert('aie');
});
} else {
$scope.result = $rootScope.loadedResult;