From 5d62532c8915c1e0ab6d878fe4c2e9dcf173e95d Mon Sep 17 00:00:00 2001 From: sagittarius-rev Date: Mon, 9 Apr 2018 14:42:29 +0800 Subject: [PATCH] bug fix: uncaught error within TranslateService.use() --- lib/src/translate.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/translate.service.ts b/lib/src/translate.service.ts index 7a198494..fa5f523a 100644 --- a/lib/src/translate.service.ts +++ b/lib/src/translate.service.ts @@ -207,7 +207,7 @@ export class TranslateService { pending.pipe(take(1)) .subscribe((res: any) => { this.changeLang(lang); - }); + }, err => { }); return pending; } else { // we have this language, return an Observable