function handleError(error){
	$scope.loading=false; 
	$scope.isError=true;
	$scope.errorMessage =error;
}
//function to handle the error and loading
function to handle the error and loading
function to handle the error and loading
function handleError(error){
	$scope.loading=false; 
	$scope.isError=true;
	$scope.errorMessage =error;
}
function handleError ( error ) { $scope . loading = false ; $scope . isError = true ; $scope . errorMessage = error ; }
function to handle the error and loading
function to handle the error and loading