Skip to content

Update on the example app #2554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Update on the example app #2554

wants to merge 1 commit into from

Conversation

tomcatmwi
Copy link

Checklist

Description

The example code in the docs didn't work on Angular 10 as auth was always undefined. It took some forum digging to find the error.

Code sample

The example didn't work in my Angular 10 app as `auth` was `undefined`. It took some forum digging to find the error.
@hakimio
Copy link

hakimio commented Sep 8, 2020

@tomcatmwi @oavila81 @jamesdaniels
There are two PRs for the same issue:
#2577

@Splaktar
Copy link
Contributor

Also there is an even earlier PR that tries to fix this doc: #2483

@@ -30,7 +30,7 @@ export class AppComponent {
constructor(public auth: AngularFireAuth) {
}
login() {
this.auth.signInWithPopup(new auth.GoogleAuthProvider());
this.auth.signInWithPopup(new firebase.auth.GoogleAuthProvider());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the approach in PR #2483 is better. I.e.

this.afAuth.auth.

@jamesdaniels
Copy link
Member

Thanks, addressed in another PR. Docs should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants