Last active
October 19, 2018 21:12
-
-
Save LayZeeDK/08cc41d90872a0396dd24c8c3a9cb6a9 to your computer and use it in GitHub Desktop.
Basic search presenter
This file contains hidden or 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 { Subject } from 'rxjs'; | |
export class SearchPresenter { | |
private _searchQuery: Subject<string> = new Subject(); | |
searchQuery: Observable<string> = this._searchQuery.asObservable(); | |
search(query: string): void { | |
this._searchQuery.next(query); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment