0👍
It was freezing up because there was not a method to handle the button. the button method depended on the computed property. Once a method was added it worked just as expected.
<button @click="addToCart" class="primary">
Add to Cart - ${{ combinedPrice.toFixed(2) }}
</button>
methods: {
addToCart() {
alert("add to cart button");
},
},
- [Vuejs]-Vue JS – Reactive content in component
- [Vuejs]-Vue-Router only showing base route using Laravel Blade?
Source:stackexchange.com