I want to show two arrays in a table
veran I have two arrays in the first one I have the products and the second one I have the states of the products and it has a field product_id to which it refers.
<table class="table">
<thead>
<tr>
<th>id</th>
<th>name</th>
<th>estado</th>
</tr>
</thead>
<tbody>
<tr v-for="pro in productos" :key="pro.id">
<td>{{pro.id}}</td>
<td>{{pro.name}}</td>
<td>{{aqui quiero mostrar el estado del segundo arry}}</td>
</tr>
</tbody>
</table>
These are the arrys:
productos:[
{id:1, name: 'gaseosa'},
{id:2, name: 'carne'},
{id:3, name: 'pasta'},
{id:4, name: 'arroz'},
{id:5, name: 'queso'},
],
estadoProducto:[
{id:1, status: 'activo', producto_id:1},
{id:2, status: 'inactivo', producto_id:4},
{id:3, status: 'activo', producto_id:3},
{id:4, status: 'activo', producto_id:5},
{id:5, status: 'inactivo', producto_id:2},
],
I would greatly appreciate your valuable help