[Vuejs]-Axios response happening after component is rendered

0👍

You can just watch the prop and set this.slides when it changes, i.e. when the async call has finished:

watch:{
  carousel(value) {
    this.slides = value
  }
}

Here’s a JSFiddle: https://jsfiddle.net/nwLh0d4w/

Leave a comment