Skip to content

Commit 92f7aaf

Browse files
authored
fix(analytics): removed providedIn: 'any' from the service injectable (#2605)
Ensure the ScreenTrackingService and UserTrackingService are opt-in, rather than opt-out, as documented.
1 parent 9a26fbe commit 92f7aaf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/analytics/analytics.service.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ const getScreenInstanceID = (params: { [key: string]: any }) => {
6060
}
6161
};
6262

63-
@Injectable({
64-
providedIn: 'any'
65-
})
63+
@Injectable()
6664
export class ScreenTrackingService implements OnDestroy {
6765

6866
private disposable: Subscription | undefined;
@@ -191,9 +189,7 @@ export class ScreenTrackingService implements OnDestroy {
191189

192190
}
193191

194-
@Injectable({
195-
providedIn: 'any'
196-
})
192+
@Injectable()
197193
export class UserTrackingService implements OnDestroy {
198194

199195
private disposable: Subscription | undefined;

0 commit comments

Comments
 (0)