Load Data into the Vuex Store in Nuxt

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

With axios installed, you can load data and store it into your Vuex store on the server-side before your app even renders. This lesson walks you through using axios to load data in a Nuxt news app and adding it to the store to display on any page.

Eleonora Lester
~ 6 years ago

The correct axios get for json items from hackernews:

axios.get(`item/${id}.json?print=pretty`)

From https://github.com/HackerNews/API