ngx-handle-error
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

})
  ],
})

Package Sidebar

Install

npm i ngx-handle-error

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

191 kB

Total Files

42

Last publish

Collaborators

  • hlpupo