@adopisowifi/ng-http-error

This module provides `httpError` - function that extracts error string from http response object

Usage no npm install needed!

<script type="module">
  import adopisowifiNgHttpError from 'https://cdn.skypack.dev/@adopisowifi/ng-http-error';
</script>

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);
});