Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Build Your First Vue.js App > Lesson 40

Adding a sensor element

Now what we want to do is make is to that when we scroll to the bottom of the page, we add the next 4 items to the products array.

So how do we detect if we're at the bottom of the page? Most browers offer an API that allows you to query an element and see if it's currently in the viewport or not.

So let's put an invisible element at the bottom of the products list and use this as a sensor.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom