Skip to content

Commit

Permalink
fix(analytics): removed providedIn: 'any' from the service injectable (
Browse files Browse the repository at this point in the history
…#2605)

Ensure the ScreenTrackingService and UserTrackingService are opt-in, rather than opt-out, as documented.
  • Loading branch information
jackcw authored Oct 30, 2020
1 parent 9a26fbe commit 92f7aaf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/analytics/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ const getScreenInstanceID = (params: { [key: string]: any }) => {
}
};

@Injectable({
providedIn: 'any'
})
@Injectable()
export class ScreenTrackingService implements OnDestroy {

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

}

@Injectable({
providedIn: 'any'
})
@Injectable()
export class UserTrackingService implements OnDestroy {

private disposable: Subscription | undefined;
Expand Down

0 comments on commit 92f7aaf

Please sign in to comment.