The Vue.js 2 Master Class
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 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.