From the course: Angular: Creating and Hosting a Full-Stack Site
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Load user listings with Auth
From the course: Angular: Creating and Hosting a Full-Stack Site
Load user listings with Auth
- [Instructor] So now that we've allowed users to sign in and out, it's time to start incorporating Firebase Auth into some of the other parts of our app. Recall that earlier in the course, there were several places in both our front end and back end, where we sort of faked a user by hard coding a user ID. The get listings for user method and our Listing Service was a good example of this, where we simply hard coded one two three four five for the requests that our front end made to our back end. But now that our users are actually logged in, the currently logged in user will have a unique user ID that Firebase Auth automatically assigns to them. So let's take a look at how we can use this ID to make our app actually load the correct listings for a user. Now, this will involve making changes to both the front end and back end. But we're going to start with the front end here. So inside our listings dot service file,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
What is Firebase Auth?2m 18s
-
(Locked)
Set up a Firebase account3m 8s
-
(Locked)
Add Firebase to Angular3m 48s
-
(Locked)
Add Firebase to hapi3m 58s
-
(Locked)
Sign in and out5m 27s
-
(Locked)
Load user listings with Auth7m 10s
-
(Locked)
Create listings with Auth3m 30s
-
(Locked)
Edit listings with Auth2m 42s
-
(Locked)
Delete listings with Auth3m 13s
-
(Locked)
-
-