ngx-handle-error
v1.1.2
Published
Using for Handler error on Angular app
Downloads
10
Maintainers
Readme
NgxHandleError
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
Install
npm i ngx-handle-error
yarn add ngx-handle-error
Configuration
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
})
],
})