Error message if the result is not found

This commit is contained in:
Gaël Métais
2015-01-08 11:02:36 +01:00
parent d7aa24b467
commit 73f48b71a2
2 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
$scope.result = result;
init();
}, function(err) {
alert('aie');
$scope.error = true;
});
} else {
$scope.result = $rootScope.loadedResult;