The video for this lesson is currently being updated, please read the transcript instead.

Fixing search results

Our scroll load is pretty much finished. There are two little things that I want to add to make it perfect, though.

Firstly, the search message at the top says how many items are showing, but we really want this to be the number of items found. So 4 should be 11.

Easy fix, though, we can go to the template and insted of interpolating products.length, we interpolate results.length.

<div class="search-results" v-else>

To view the complete lesson you'll need to login or join this course.


Click to load comments...