Created
August 30, 2018 07:54
-
-
Save adrianfaciu/0dab271399b7e6936717848851e923ef to your computer and use it in GitHub Desktop.
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
const filteredSearchStream$ = this.searchStream$.pipe( | |
debounceTime(200), | |
distinctUntilChanged(), | |
startWith('') | |
); | |
const devFilterStream$ = this.filterStream$.pipe(startWith(false)); | |
combineLatest(filteredSearchStream$, devFilterStream$).subscribe( | |
([searchTerm, onlyDevs]) => this.filterEmployees(searchTerm, onlyDevs) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment