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.
Connect the Listing Detail page
From the course: Angular: Creating and Hosting a Full-Stack Site
Connect the Listing Detail page
- Okay, so far our app is loading our listings for the listings page from our backend. So over the course of the next few videos, we're going to be changing over the rest of the pages in our app to do the same thing. So what we're going to do is we're going to start off with the listing detail page and contact page, which will behave fairly similarly. Basically, we're going to have our listing detail page load the data for an individual listing from the get listing route that we defined on our server. And we're also going to have it send a request to the add view to listing route that we defined to increment the number of views that a listing has. So here's what all of that's going to look like. We're going to open up our listing service if you don't already have it open. And the first thing we're going to do is since adding views to a listing is going to be a post request, we're going to have to add some headers to the…
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)
Services in Angular5m 53s
-
(Locked)
RxJS and the Angular HttpClient4m 59s
-
(Locked)
Avoid CORS errors4m 10s
-
(Locked)
Connect the Listing Detail page8m 57s
-
(Locked)
Connect the My Listings page4m 34s
-
(Locked)
Connect the New Listing page4m 2s
-
(Locked)
Connect the Edit Listing page4m 30s
-
(Locked)
-
-
-