Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bugsnag-angular

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugsnag-angular

Angular integration for bugsnag-js

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
58
decreased by-33.33%
Maintainers
3
Weekly downloads
 
Created
Source

Bugsnag: Angular

A bugsnag-js plugin for Angular.

This package enables you to integrate Bugsnag's error reporting with an Angular (v2+) application at a detailed level. It provides an implementation of the @angular/core ErrorHandler which you can use to capture and report unhandled errors in your app.

Reported errors will contain useful debugging info from Angular's internals, such as the component and context.

Installation

npm i --save bugsnag-js bugsnag-angular
# or
yarn add bugsnag-js bugsnag-angular

Usage

In your the root of your angular app, typically app.module.ts:

// Import bugsnag-js and bugsnag-angular
import bugsnag from 'bugsnag-js';
import createPlugin from 'bugsnag-angular';

// configure Bugsnag ASAP, before any other imports
const bugsnagClient = bugsnag('API_KEY');
const BugsnagErrorHandler = bugsnagClient.use(createPlugin());

// ... other imports omitted for brevity

@NgModule({
  /* Pass the BugsnagErrorHandler class along to the providers for your module */
  providers: [ { provide: ErrorHandler, useClass: BugsnagErrorHandler } ]
  /* other properties passed to the decorator omitted for brevity */
})

See the example for more info.

Support

License

The Bugsnag JS library and official plugins are free software released under the MIT License. See LICENSE.txt for details.

FAQs

Package last updated on 05 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc