Created
November 27, 2018 03:26
-
-
Save overclock11/15f2ad42a0025bb9de13f0c6462c0e33 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 {Subject} from 'rxjs'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class IntermedioService { | |
private observer = new Subject<string>(); | |
public errorMessage = this.observer.asObservable(); | |
constructor() { } | |
updateMessage(message: string) { | |
this.observer.next(message); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment