| .. | .. |
|---|
| 1 | 1 | |
|---|
| 2 | 2 | import { Component, Injectable, Input } from '@angular/core'; |
|---|
| 3 | +import { Response } from '@angular/http'; |
|---|
| 3 | 4 | import { LocaleService } from './i18n'; |
|---|
| 4 | 5 | import { Observable } from 'rxjs/Observable'; |
|---|
| 5 | 6 | |
|---|
| .. | .. |
|---|
| 42 | 43 | |
|---|
| 43 | 44 | constructor(protected $L: LocaleService) { } |
|---|
| 44 | 45 | |
|---|
| 46 | + public setViewData(callback: any) { |
|---|
| 47 | + setTimeout(callback, 0); |
|---|
| 48 | + } |
|---|
| 49 | + |
|---|
| 45 | 50 | public processErrorResponse(errorResponse: Response) { |
|---|
| 46 | 51 | // In a real world app, we might use a remote logging infrastructure |
|---|
| 47 | 52 | var error: IError = <IError>{}; |
|---|