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 42

Triggering code with scroll monitor

Next, let's make it so our watcher callback adds results to our list of products. This is going to require Scroll Monitor and Vue to be in communication.

Firstly, let's create a new Vue method called appendResults. This method is going to be responsible for copying more items from the results array to the products array.

For now, though, we'll just get it to console log the message "Append results.".

methods: {
  appendResults: function() {

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