I have a component with an array property which contains objects/json, and I’m trying to dynamically address the array to pull out the data from one array element based on the user selection.
I want to update the
selectedTanks property with the values based on the selected index.
index == 0 above, then
selectedTank.tankNumberAStart should equal 4198 and similarly for B.