We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7fe450 commit cd72b9cCopy full SHA for cd72b9c
src/translate.service.ts
@@ -123,9 +123,9 @@ export class TranslateService {
123
124
// todo use share() on observable instead of this hack once Angular 2 has been updated to RxJS 5.0.0.alpha-6 and remove this
125
this.pending = Observable.create((subscriber: any) => {
126
- var timeoutId = setTimeout(() => {
+ var intervalId = setInterval(() => {
127
if(typeof observable === 'undefined') {
128
- clearTimeout(timeoutId);
+ clearTimeout(intervalId);
129
subscriber.next(this.translations[lang]);
130
}
131
}, 30);
0 commit comments