Skip to content

Document Angular SDK installation for standalone component Angular projects #8342

Closed
@Lms24

Description

@Lms24

Core or SDK?

Platform/SDK

Which part? Which one?

@sentry/angular-ivy

Description

Since Angular 16 (I belive), entire Angular applications can created without declaring a single NgModule, by only using standalone components.

We currently instruct users to declare our providers (ErrorHandler, TraceService) in app.module.ts which doesn't exist in this case.

Suggested Solution

Add instructions how to declare providers in app.config.ts. There are no big differences except for the used Angular API but we should nevertheless cover this in our docs.

Kind of blocked on getsentry/sentry-javascript#9376 since I first want to figure out the best course of action around using the SDK in SSR Angular 17 apps.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions