@adopisowifi/ng-http-error
v0.0.2
Published
This module provides `httpError` - function that extracts error string from http response object
Downloads
8
Readme
Extracts error message from http response
This module provides httpError
service - function that extracts error string from http response object
Usage
- Module name:
ado.http-error
- Service name:
httpError
$http.get('/url').catch(function (res) {
var errStr = httpError(res);
console.log(errStr);
});