@adopisowifi/ng-http-error

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @adopisowifi/ng-http-error

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

2.05 kB

Total Files

4

Last publish

Collaborators

  • adonesp