angular-firebase-app | The code for the Angular and Firebase | Authentication library
kandi X-RAY | angular-firebase-app Summary
kandi X-RAY | angular-firebase-app Summary
This course is now archived and has been replaced with the Serverless Angular with Firebase & AngularFire Course.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-firebase-app
angular-firebase-app Key Features
angular-firebase-app Examples and Code Snippets
Community Discussions
Trending Discussions on angular-firebase-app
QUESTION
I implemented angular firebase email and password registration and login, but now what I want to do is check in my navigation template the state of the user, if the user is logged in, then hide login button, as well as hide register button. I tried googling for some tutorials on this, and found out that I must use AuthService and AuthInfo as you can see here:
The thing is that they are using a lot of promises and stuff, which I'm not familiar with and it really confuses me. I'm trying to achieve this in the most basic way and looking for someone to guide me and help me.
Here is my code now:
navigation -
...ANSWER
Answered 2018-Dec-07 at 13:59You'll need to use session, so that you can check it considering page refreshes.
Just set & use a property for loggedIn
as follows in your service AuthService
-
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-firebase-app
Install Node and NPM on Windows
Install Node and NPM on Linux
Install Node and NPM on Mac
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page