Skip to content
Advertisement

How to filter array with multiple conditions in Vuejs?

JavaScript
JavaScript

I am trying to achieve functionality like,

Initially the array will be loaded with the help of v-for. At the top I have two options called search-bar and dropdown. Where With the help of those I am trying to filler the array.

Where with search-bar, I want to filter array values. With dropdown, I want to filter the status present in each array.

Advertisement

Answer

try like following snippet:

JavaScript
JavaScript
Advertisement