Skip to content

Instantly share code, notes, and snippets.

@Stronhold
Created February 10, 2019 12:59
Embed
What would you like to do?
import { Injectable } from '@angular/core';
import { Executioner } from '../model/executioner';
import { ErrorUpdate } from '../model/error-update';
@Injectable({
providedIn: 'root'
})
export class ErrorService implements Executioner{
constructor() { }
execute(data: ErrorUpdate): void {
console.error(data.message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment