[Vuejs]-Sort Array by Child Computed Property in Vue

0👍

I see a couple of ways of handling this.

  1. Compute totalFees in the parent component and then feed this via props to the children. This seems the fastest way
  2. Compute totalFees in children as now, fire and event via emit. Listen for the event on the parent and add totalFees to the correct index in flightData. The emitted event should also pass flight.id so you know what element to be updated.

Leave a comment