4 constructor($log, $scope,$state) {
5 $scope.errorState = $state.current.name;
6 if($scope.errorState=='root.error404'){
7 $scope.errorTitle="Page Not Found";
8 $scope.errorMsg="The page you are looking for cannot be found";
9 }else if($scope.errorState=='noUserError'){
10 $scope.errorTitle="Authorization denied";
11 $scope.errorMsg= "Please Contact Your Administrator for the page access";
13 $scope.errorTitle="Something went wrong";
14 $scope.errorMsg= "Please go back to the previous page";
18 ErrorCtrl.$inject = ['$log','$scope','$state'];
19 angular.module('ecompApp').controller('ErrorCtrl', ErrorCtrl);