Angular - waiting for Google authentication to complete
问题 I'm trying to get Google authentication working properly in Angular 4. The issue is that the code isn't waiting for a result from the Google auth pop-up window before continuing execution. The actual login works, it's just controlling the next step that's causing me trouble. I've tried adding a "getLoginResult" method which returns an observable, but it didn't help. login() { this._authService.getLoginResult() .subscribe(results => { if(results === true) { // want to do something here } else