@micro-sentry/angular
Advanced tools
Comparing version
export * from './lib/modules/micro-sentry.module'; | ||
export * from './lib/provide-micro-sentry'; | ||
export * from './lib/services/micro-sentry.service'; | ||
@@ -3,0 +4,0 @@ export * from './lib/services/micro-sentry-error-bus.service'; |
{ | ||
"name": "@micro-sentry/angular", | ||
"version": "6.2.0", | ||
"version": "6.3.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": ">=14.0.0", |
@@ -40,5 +40,19 @@ # micro-sentry | ||
Just add it into `app.module.ts` of your application: | ||
You can use provide api in standalone applications: | ||
```typescript | ||
import { provideMicroSentry } from '@micro-sentry/angular'; | ||
bootstrapApplication(AppComponent, { | ||
providers: [ | ||
provideMicroSentry({ | ||
dsn: 'https://kj12kj1n23@sentry.domain.com/123', | ||
}), | ||
], | ||
}); | ||
``` | ||
Or add it into `app.module.ts` of your application: | ||
```typescript | ||
import { MicroSentryModule } from '@micro-sentry/angular'; | ||
@@ -48,2 +62,7 @@ | ||
imports: [ | ||
// option 1: via provide | ||
provideMicroSentry({ | ||
dsn: 'https://kj12kj1n23@sentry.domain.com/123', | ||
}), | ||
// options 2: via module | ||
MicroSentryModule.forRoot({ | ||
@@ -50,0 +69,0 @@ dsn: 'https://kj12kj1n23@sentry.domain.com/123', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45511
5.44%21
10.53%330
4.43%170
12.58%