Is there a good way to catch errors in Angular regarding connection problems?
Service $http POST:
dossierService.getDossier(uid)
.then(function (result) {
vm.dossier = result.dossier;
}, function (error) {
handleError(error)
});//end dossierService.getDossier(uid)
If there is a connecting problem it will return an error:
POST http://192.168.25.1:8080/api/query net::ERR_CONNECTION_TIMED_OUT
How can I show the correct message to the user letting him/her know what the exact error is?