Skip to main content

Requirements

  • Angular 19+
This is a dedicated Angular library — an injectable LerixService, a provideLerix() function for your app.config.ts, and an Angular ErrorHandler integration — built on top of @lerix-dev/lerix-core, the framework-agnostic engine shared by every Lerix web SDK. Building a React app instead? See the React SDK. If you’re using neither Angular nor React, @lerix-dev/lerix-core also works directly.

1. Add the dependency

2. Register the SDK

Add provideLerix() to your app.config.ts:
app.config.ts
Find your API key and project ID in the Lerix Dashboard under Project Settings.
Registration with the backend, and the automatic crash handler, run at bootstrap — before your app becomes interactive. There’s no separate init() call to make.

Parameters

3. Verify the integration

Inject LerixService and throw a test error to confirm everything is working:
Then open your dashboard — the error should appear within seconds.
You’re all set! Continue to Error Tracking to report custom errors and enable automatic capture, or Push Notifications to enable push delivery.