Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Stronhold
Created February 10, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stronhold/0d3eea6a37c4ae271c6974925068e804 to your computer and use it in GitHub Desktop.
Save Stronhold/0d3eea6a37c4ae271c6974925068e804 to your computer and use it in GitHub Desktop.
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