From 08e725754836fd4b98d7aabbb6488764a0f2469a Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 26 Jun 2017 15:30:42 +0000
Subject: [PATCH] Merge branch 'angular2' of https://git.curisit.net/gitblit/git/common/securis into angular2

---
 securis/src/main/webapp/src/app/common/utils.ts |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/securis/src/main/webapp/src/app/common/utils.ts b/securis/src/main/webapp/src/app/common/utils.ts
index 6e63b6a..ecc46de 100644
--- a/securis/src/main/webapp/src/app/common/utils.ts
+++ b/securis/src/main/webapp/src/app/common/utils.ts
@@ -1,5 +1,6 @@
 
 import { Component, Injectable, Input } from '@angular/core';
+import { Response } from '@angular/http';
 import { LocaleService } from './i18n';
 import { Observable } from 'rxjs/Observable';
 
@@ -42,6 +43,10 @@
 
 	constructor(protected $L: LocaleService) { }
 
+	public setViewData(callback: any) {
+		setTimeout(callback, 0);
+	}
+
 	public processErrorResponse(errorResponse: Response) {
 		// In a real world app, we might use a remote logging infrastructure
 		var error: IError = <IError>{};

--
Gitblit v1.3.2