Closed zane-shus closed 1 year ago
I have used AXIOS for this and its happy:
created(){
axios.get('http://192.168.0.101/api/v1/positions')
.then((response) => {
console.log(response.data.Items)
this.markers = response.data.Items
})
.catch(function(err) {
console.error(err)
})
},
I am trying to get my data from a remote data API, it is in this format:
My code looks like this:
I am getting this error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'position')
Any thoughts please?
Note: I am using SyncFusion and Vue3.