[Vuejs]-Filtering through an array based on its ID

1๐Ÿ‘

โœ…

I think the answer is simply that you are missing the () in theโ€™v-forโ€™. So, instead of having this:

v-for="(record, index) of filteredRecords"

You should have this:

v-for="(record, index) of filteredRecords()"

0๐Ÿ‘

The problem is not in the filtering, it is in the vue section:

Instead of

v-for="(record, index) of filteredRecords"

use

v-for="(record, index) in filteredRecords"

Leave a comment