Angular Invocation Handler
A module for collecting errors, stack traces and other information globally from within your Angular app e.g. for saving to a remote service or for displaying
Feel free to donate
Or donate Bitcoins:
Also via greenaddress
Reasons to use
It's anyoing to handle all errors in controller and service and also very defective. So instead of surfacing the log it would be cool to manage them at a central place and maybe store them via on a backend service
WIP
- Library core
- Write unit tests
- NPM package
- Write e2e-tests
- Write an API doc
- Provide complete examples
Usage
Install this module:
bower install angular-invocation-handler --save
Add the dependencies
/*global app: true*/var app = angular;
If you like to display the error message within your app, also include the ui module.
Configure the service to be handled:
app;
The customized error handling service looks like this:
app;
About
This module instruments Angular's interceptors
to invoke a configurable set for the error handling.