How to install and use
Install the package with the following script:npm install @btapai/ng-error-handler --save
This package has @angular/cdk as a peer dependency. Install it as well:npm install @angular/cdk --save
If your project does not use @angular/material, add the following line into your styles.css file:;
Import the module into your main ngModule;;;;
With this setup uncaught errors will be handled by this error-handler module.
This packages uses the Angular CDK Overlay module for creating a backdrop. If you would like to style the overlay, provide a configuration object with your custom OverlayConfig object. For possible config options check out its documentation
You can also provide custom hooks to run when an error is thrown:
I'd like to keep this module up-to date with Angular versions.