
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
bugsnag-angular
Advanced tools
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.
npm i --save bugsnag-js bugsnag-angular
# or
yarn add bugsnag-js bugsnag-angular
In your the root of your angular app, typically app.module.ts
:
// Import bugsnag-js and bugsnag-angular
import BugsnagErrorHandler from 'bugsnag-angular'
import bugsnag from 'bugsnag-js'
// configure Bugsnag ASAP, before any other imports
const bugsnagClient = bugsnag('API_KEY')
// create a factory which will return the bugsnag error handler
export function errorHandlerFactory() {
return new BugsnagErrorHandler(bugsnagClient)
}
import { ErrorHandler, NgModule } from '@angular/core'
// ... other imports omitted for brevity
@NgModule({
/* Pass the BugsnagErrorHandler class along to the providers for your module */
providers: [ { provide: ErrorHandler, useFactory: errorHandlerFactory } ]
/* other properties passed to the decorator omitted for brevity */
})
See the example for more info.
The Bugsnag JS library and official plugins are free software released under the MIT License. See LICENSE.txt for details.
2.0.1 (30-04-2018)
ngc
version 4 to compile the built assets. The v5 compiler output was not backwards-compatible with v4 apps. v4 compiler assets are compatible with v4 and v5 apps.FAQs
Angular integration for bugsnag-js
The npm package bugsnag-angular receives a total of 30 weekly downloads. As such, bugsnag-angular popularity was classified as not popular.
We found that bugsnag-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.