rsanchez
2017-06-23 7163fc28f700785424ec10601ce6aa58d6d05223
securis/src/main/webapp/src/app/common/utils.ts
....@@ -1,5 +1,6 @@
11
22 import { Component, Injectable, Input } from '@angular/core';
3
+import { Response } from '@angular/http';
34 import { LocaleService } from './i18n';
45 import { Observable } from 'rxjs/Observable';
56
....@@ -42,6 +43,10 @@
4243
4344 constructor(protected $L: LocaleService) { }
4445
46
+ public setViewData(callback: any) {
47
+ setTimeout(callback, 0);
48
+ }
49
+
4550 public processErrorResponse(errorResponse: Response) {
4651 // In a real world app, we might use a remote logging infrastructure
4752 var error: IError = <IError>{};