vc-error-handlers
v0.4.2
Published
To add vc-error-handlers package to your project, follow these steps:
Downloads
390
Readme
Installation
To add vc-error-handlers package to your project, follow these steps:
- Open your terminal and navigate to your project folder.
- Run the following command to install the package: shell npm i vc-error-handlers
Usage
- Import the VcErrorHandlersModule in your module file:
import { NgModule } from "@angular/core";
import { VcErrorHandlersModule } from "vc-error-handlers";
@NgModule({
imports: [
VcErrorHandlersModule.forRoot({ sentryConfig: SENTRY_CONFIG }), // Replace SENTRY_CONFIG with your Sentry configuration
],
})
export class MyModule {}
- Replace SENTRY_CONFIG with your actual Sentry configuration. After importing the module, you can use the error handlers provided by vc-error-handlers throughout your Angular application