[Vuejs]-V-for not render any value

3👍

In axios, you must use res.data to get the qcm data, like this:

axios.get(url).then(res => {
    this.qcm = res.data
}).catch(err => {
    //handle when an error occur
})

0👍

Your JSON structure is incorrect, you’re missing a ” after “_id it should be:

[{"_id":"1","title":"test qcm"},{"_id":"2","title":"kkkk"}]

Leave a comment