rsanchez
2017-06-26 08e725754836fd4b98d7aabbb6488764a0f2469a
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>{};