This library was generated with Angular CLI version 8.2.0.
This library is for handle errors on Angular App
Features
- Save the errors logs
Dependencies
- @angular/common
- @angular/core
- rxjs
npm i ngx-handle-error
yarn add ngx-handle-error
First you need to configure the service in app.module.ts
. You can pass optional configuration options with the static withConfig()
function.
@NgModule({
imports: [
NgxHandleErrorModule.withConfig({
enviroment: "dev", //current enviroments
endpoint: "https://localhost", //endpoints wher you save the error
allowEnviroment: ["dev"],//enviroments that you want to save the logs
})
],
})