basel51
879
4
Vue

axios get data

Posted 2 years ago by basel51

this call exist in my Vue2 script file at componant methods: fetchdata() { axios.get('/api/orig').then((response){ this.origs = response.data ); }, I try after that alert(this.origs.id); but it is give undefined while in the html file I use origs.id it has value

Please sign in or create an account to participate in this conversation.