Skip to content

hlpupo/ngx-handle-error

Repository files navigation

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

})
  ],
})

About

This library is for handle errors on Angular App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published