[Vuejs]-Vue + Typescript, Why is my computed property not updating my view

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");
    },
  },

Leave a comment