Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Build Your First Vue.js App > Lesson 43

Appending items

Now we need to get the appendResults function to do its job. Remember that this method is called every time we reach the bottom of the page.

What it should do is check if there are any more objects inside the results array which have not yet been added to the products array.

If there are, it should append the next 4 to the products array. If there aren't, it doesn't need to do anything.

Conditional logic


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom