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 33

Triggering search on page load

The next enhancement that I want to make is that, when the app loads, we get search results straight away rather than just a blank page like we do now.

We'll use a lifecycle hook to achieve this.

Rationale

If you go to the Amazon.com front page, it doesn't just show you a blank page and suggestion you search for something.

Instead, they show you the top items so that straight away you're engaged with their store.


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