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

Connect the Listing Detail page

From the course: Angular: Creating and Hosting a Full-Stack Site

Start my 1-month free trial

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…

Contents