Example Vue Structure:
<Root>
<App>
<component>
Main function in main.js:
function() {
axios.get('/app-api/call').then(function (resp, error) {
_this.response = resp.data;
})
}
Issue with assigning variable in child component:
this.variable.value = this.$root.response
The server response is received after the child component is created. How can I resolve this timing issue?
Thank you