Intro-to-Vue-3
Intro-to-Vue-3 copied to clipboard
L8-end updateVariant method need to add "this.onSale = this.variants[index].quantity" to change onSale property ?
updateVariant(index) {
this.selectedVariant = index
}
updateVariant(index) {
this.selectedVariant = index
**this.onSale = this.variants[index].quantity**
}