I am probably overseeing something, but I am stuck, the following variables do not seem to be updating in the template when their values are updated in the promise:
private emailDetected: boolean = false;
private detectedEmail: string = "";
detectEmailViaPassword() {
this.afAuth.auth.signInWithPopup(new auth.GoogleAuthProvider()).then(authResult => {
this.detectedEmail = authResult.user.email;
this.emailDetected = true;
}).catch(error => {
console.log(error);
});
}
When logging the variables, it seems that they are updated, but nothing is happening in the template. When I update the variables from somewhere else than the firebase auth promise, it works correctly -- I am extremely confused...
The variables are referred to correctly in the template: {{ detectedEmail }}
I would be very thankful for some help :)