/*------------------------------------------------------------------------------ About : Created on : Wed Aug 30 2017 Author : Sid Copyright (c) 2017 Mubble Networks Private Limited. All rights reserved. ------------------------------------------------------------------------------*/ import { Component, Input, Output, Inject, EventEmitter } from '@angular/core' import { RunContextBrowser } from '../../../../rc-browser' @Component({ selector : 'loading-error', templateUrl : './loading-error.component.html', styleUrls : ['./loading-error.component.scss'] }) export class LoadingErrorComponent { @Input() apiErrorText : string @Input() apiCanRetry : string @Input() apiRetryText : string @Output() apiErrorAction : EventEmitter = new EventEmitter() constructor(@Inject('RunContext') private rc : RunContextBrowser) { } onErrorAction() { this.apiErrorAction.emit() } }