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/
Source:stackexchange.com
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/