0👍
You have declared app variable but its not defined. replace app variable with this e.g
created(){
let _this = this
axios.get(this.bUrl1 + '/api/getMessages')
.then(response => {
_this.privsteMsgs = response.data; //we are putting data into our posts array
console.log(_this.privsteMsgs);
})
.catch(function (error) {
console.log(error); // run if we have error
});
}
- [Vuejs]-V-model in a nested v-for of a multidimensional array
- [Vuejs]-How can I transmit from a component to another when redirecting in VueJS?
Source:stackexchange.com