Books page
We gave you some homework from the Home.vue
page for this next part, which is for Books.vue
and the rest of the listings pages. We hope you have managed to create “data-objects” for the books on this page, and here is a small snippet of how this looks. For the complete code check the books github repo.
data
()
{
return
{
books
:
[
{
name
:
"TensorFlow For Machine Intelligence"
,
price
:
"$22.99"
,
pageCount
:
270
,
ISBN
:
"9781939902351"
,
coverImage
:
"../assets/images/tensorflow.jpg"
,
publishDate
:
2017
,
},
{
name
:
"Docker in Production"
,
price
:
"$22.99"
,
pageCount
:
156
,
ISBN
:
"9781939902184"
,
coverImage
:
"../assets/images/docker.jpg"
,
publishDate
:
2015
,
},
],
allBooks
:
[]
}
}
The book’s page has some simple functionality for filtering and sorting the...