V
V
Vardeges2019-02-08 19:48:21
Vue.js
Vardeges, 2019-02-08 19:48:21

Nuxt.js api call on load?

How can I make an api call code that is initialized with NUXT.
For example in Vue.js in app.js
created(){
this.apiCall();
},
methos:{
apiCall(){
axios.get('api');
}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question