Answer the question
In order to leave comments, you need to log in
How to get specific properties in JSON vue?
connected json
var apiWorkers = $.getJSON('http://laravel/workers.api',function(apiWorkers){
console.log(apiWorkers);
});
export default {
data(){
return{
btn_txt: "Искать",
arr: apiWorkers,
arrTO: typeof apiWorkers
}
}
}
<ul>
<li v-for="(item, index) in arr">{{ index }} - {{ item }} </li>
</ul>
readyState -
getResponseHeader -
...
responseJSON -
...
// так пустышка на выходе
// Vue.axios.get(apiWorkers).then(function(response){
// console.log(response.data);
// });
Answer the question
In order to leave comments, you need to log in
this right way
https://alligator.io/vuejs/rest-api-axios/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question