Skip to content

Commit e44ed1a

Browse files
committed
done with listing
1 parent 3b72c24 commit e44ed1a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/content/create-listing-component.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const routes = [
2424
]
2525
```
2626

27-
The ":id" in the URL will tell the router to put id of the listing in the URL whenever it is navigated to. This will also allow us to send the id of that specific Listing to API for us to fetch.
27+
The `:id` in the URL will tell the router to put the `id` of the listing in the URL whenever it is navigated to. This will also allow us to send the `id` of that specific Listing to API for us to fetch.
2828

2929
Next up create a `Listing.vue` file in the pages folder and add the following:
3030

@@ -161,11 +161,9 @@ export default {
161161

162162
```
163163

164-
🌶️ Similar to the landing page wee have an Apollo Query Component that will allow us to fetch the data for the listing and gives variables for the data, error and loading states.
164+
🌶️ Similar to the landing page we have an Apollo Query Component that will allow us to fetch the data for the listing and gives variables for the `data`, `error` and `loading` states.
165165

166-
🌶️ In our template slot we first check for the Loading state to be true. then render a loading state.
167-
168-
🌶️ Same thing for the error state
166+
🌶️ In our template `slot` we first check for the Loading state to be true, then render a loading state.
169167

170168
🌶️ Then in the data part we are rending all the data associated with the Listing.
171169

0 commit comments

Comments
 (0)