Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
in component
//unsubscribe
ngUnsubscribe: Subject<void> = new Subject<void>();
this.adminService.GetUserByAccount(_.toNumber(this.shareService.readCookie("userId"))).takeUntil(this.ngUnsubscribe).subscribe()
ngOnDestroy() {
this.ngUnsubscribe.next();
this.ngUnsubscribe.complete();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.