ng-anomaly
v0.0.2
Published
Exception Handler for Angular JS
Downloads
4
Readme
ng-anomaly
Exception handler decorator to post exceptions on the server. Depends on a minimal Ajax library for making XHR requests to the server.
Installation
NPM
$ npm i ng-anomaly
Usage
Adding module in dependencies
angular.module('app', [
'ng-anomaly'
]);
Configuring logger via anomalyProvider
angular.module(app)
.config(configuration);
function configuration(anomalyProvider){
anomalyProvider.setExceptionLogUrl('/logs');
}
Configuring the above would HTTP POST
all exceptions to /logs
, make sure you have it setup in your API project.
Provider functions
setExceptionLogUrl
: url to POST exceptions to
TODO
- [ ] Release on bower package manager
- [ ] Add headers support
- [ ] Write tests