You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second step is to create an error handler with an AirbrakeClient initialized with your projectId and projectKey. In this example the handler will be in a file called error_handler.ts.
(You can find your project ID and API KEY with your project's settings):
Install Airbrake for Angular and TypeScript in three easy steps
Step 1: Add the library
Include via CDN:
We also support installation via npm or Bower.
Step 2: Create an error handler
The second step is to create an error handler with an
AirbrakeClient
initialized with yourprojectId
andprojectKey
. In this example the handler will be in a file callederror_handler.ts
.(You can find your project ID and API KEY with your project's settings):
Step 3: Add the error handler to your
AppModule
The last step is adding the
ErrorHandler
to yourAppModule
, then your app will be ready to report errors to Airbrake.Visit our official GitHub repo for more configuration options and an example for Angular apps.
The text was updated successfully, but these errors were encountered: