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

angular-airbrake

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-airbrake

Angular 2+ Service for Airbrake error logging

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by44.44%
Maintainers
1
Weekly downloads
 
Created
Source

Angular (2+) Airbrake Integration

Build Status Coverage Status

This package provides an Angular 2+ service for logging to Airbrake.

Installation

npm install angular-airbrake

Dependencies

This module relies on the official airbrake-js npm package. In addition, it has Angular >= 2 as a peer dependency.

Usage

Bootstrap the module

import { AirbrakeModule, AirbrakeService } from 'angular-airbrake'

NgModule({
    imports: [
        AirbrakeModule.forRoot({
            // Your Airbrake options here, follow the Airbrake documentation
        })
    ],
    providers: [
        { provide: ErrorHandler, useClass: AirbrakeService }
    ]
})
export class MyAngularApp {}

Use the service

Let the Angular DI do all the magic for you.

import { Component } from '@angular/core'
import { RollbarService } from 'angular-rollbar';

@Component(...)
export class MyComponent {

    constructor (airbrake: AirbrakeService) {
        airbrake.error('Logging to Airbrake!');
    }
}

Development

We are using Angular CLI to make things a little bearable.

npm install
npm test

Disclaimer

This project is not affiliated in anyway with Airbrake.

Keywords

FAQs

Package last updated on 05 Feb 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