I am calling a parent function but my axios call after that is firing before the parent function finishes. Is there a way to use a Promise here so that the parent function resolves first before my axios post call is made?
let data = {
name: "Charles"
age: 44
}
this.$parent.updateInfo(data);
axios.post('/admin/setup/change', {
status: "new",
comment: this.newNotes,
})