AngularJS Express component to handle Angular exceptions by decorating $exceptionHandler
.
To install the component:
$ ngx install angular-exception-handler-decorator
No clue what the ngx
command line tool is? Learn more about AngularJS Express.
After installing the component:
- edit
_build/exception-handler.decorator.js
- add your custom logic
and import the component in your Angular application:
// Angular main module
var ngModule = angular.module('app', []);
// Import component
import c from 'components/angular-exception-handler-decorator/_build/index';
// Instantiate component
c(ngModule, { baseUrl: 'components/angular-exception-handler-decorator' });
baseUrl
: Base URL that component can use to construct links
- Initial version