-
Notifications
You must be signed in to change notification settings - Fork 2.2k
5.) User authentification example code broken #640
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
Comments
I believe instantiating the See http://stackoverflow.com/a/35763811/728287
|
What if you add the @component decorator, does it work in the constructor? |
I asked fro using it in |
Ok I found the issue , the af variable in the constructor needas to be
|
Hi,
the 5-user-authentication.md consists of the following example code:
Login users
We get the following error:
Looks like
af
is not being added automatically to the this scope automatically.Should it be :
But there must be a better way to initialize
af
since the Angualr 2 docs say that it is not good practice to do such things in the constructor and rather use:But how to inject
public af: AngularFire
tongOnInit()
please?
The text was updated successfully, but these errors were encountered: