From 0f99eccf96026ded44d90f64e9b5da2381628fed Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Fri, 8 Dec 2023 22:54:29 +0100 Subject: [PATCH] =?UTF-8?q?fix(preload-langs):=20=F0=9F=90=9B=20provide=20?= =?UTF-8?q?in=20root=20injector=20(#728)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/transloco-preload-langs/src/lib/preload-langs.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/transloco-preload-langs/src/lib/preload-langs.service.ts b/libs/transloco-preload-langs/src/lib/preload-langs.service.ts index de171a7c..89c36a21 100644 --- a/libs/transloco-preload-langs/src/lib/preload-langs.service.ts +++ b/libs/transloco-preload-langs/src/lib/preload-langs.service.ts @@ -7,7 +7,7 @@ export const TRANSLOCO_PRELOAD_LANGUAGES = new InjectionToken( 'Languages to be preloaded' ); -@Injectable() +@Injectable({ providedIn: 'root' }) export class TranslocoPreloadLangsService implements OnDestroy { private readonly idleCallbackId: number | undefined; private subscription: Subscription | null = null;