Created
February 6, 2022 16:13
-
-
Save ardydedase/74c0f25dcf65cf2cdb0ae2188f2c68ba to your computer and use it in GitHub Desktop.
Sample app initSearchUsers method
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
initSearchUsers(): void { | |
this.searchUsersFormControl.valueChanges | |
.pipe(takeUntil(this.destroyed$)) | |
.subscribe((searchString) => { | |
if (searchString) { | |
this.searchType = SearchType.USERS; | |
this.searchSubject$.next(searchString); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment