When I load a vue component inside a @foreach tag it gets rendered first, outside of its parent component.
//view
<div class="contenido" style="padding-top:5%">
<table class="table">
<thead class="thead-dark">
<tr>
<th class="col-md-8">Nombre descripción general</th>
<th class="col-md-2">Actualizar</th>
<th class="col-md-2">Consultar</th>
</tr>
</thead>
<tbody>
@foreach($descs as $desc)
<tab-descgen desc-nombre = "{{ $desc -> nombre }}" desc-id = "{{ $desc -> id }}"></tab-descgen>
@endforeach
</tbody>
</table>
//vue component
<template>
<tr >
<td>{{ this.descNombre }}</td>
<td><i style="font-size:30px;" class="fa fa-edit float-center"></i>
</td>
<td><i style="font-size:30px;" class="fa fa-arrow-circle-right
float-center"></i></td>
</tr>
</template>
<script>
export default {
props:['descNombre', 'descId'],
When this gets rendered the table rows inside the vue component will be rendered above the header, and I don't quite understand why. I want to know if I'm missing something.