import { ErrorEvent } from 'app/shared/models/error-event' ; import { BroadcastService } from './../services/broadcast.service' ; import { BroadcastEvent } from '../models/broadcast-event' ; export abstract class ErrorableComponent { constructor ( protected componentName , protected _broadcastService ) { } showComponentError ( error ) { this . _broadcastService . broadcast < ErrorEvent > ( BroadcastEvent . Error , error ) ; } clearComponentError ( error ) { } clearComponentErrors ( ) { } }