You could use a map or a tap operator. Something like this: import { tap } from 'rxjs/operators'; ... ngOnInit() { this.getUserDetails() .subscribe((user) ...
確定! 回上一頁