The Vue.js Master Class
Sponsored by Storyblok
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

🚧 NOTICE: You are watching a Vue.js 2 lesson

Show a Progress Bar while Components Fetch Asynchronous Data

Since we're fetching async data when loading a new component, it might be a better fit to change the loading indicator from a spinner to a progress bar.

In this lesson, we're importing and configuring NProgress.js to show the progress bar when we're fetching async data.