Created
February 10, 2019 12:59
-
-
Save Stronhold/0d3eea6a37c4ae271c6974925068e804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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