1
Install the SDK
You can install the BugByBug Angular SDK via npm.
2
Initialization for Standalone Applications (Angular 15+)
Before you can use the SDK, you need to initialize it with your BugByBug project key.Import and initialize the SDK in your
app.config.ts file:3
Initialization for Module-based Applications
Before you can use the SDK, you need to initialize it with your BugByBug project key.Import and initialize the SDK in your
app.module.ts file:Basic Usage
Once initialized, you can start using the SDK to capture bugs and errors.Manually capturing an Error
The SDK automatically captures errors within your projects, although, you still have the choose to capture or catch these errors manually like this:Identifying users within your authentication
You can useBugByBugService in your authentication component to set the user context.