Good morning,
I need to export a table with an angular TypeScript Html to an xls format file.
The structure of the table is as follows.
<!-- Inicio de contenido de la tabla -->
<table class="table table-hover table-striped table-sm table-bordered">
<thead>
<tr class="thead-dark">
<th>Id</th>
<th>Nombre 1</th>
<th>Nombre 2</th>
<th>Apellido 1</th>
<th>Apellido 2</th>
<th>Documento</th>
<th>Celular</th>
<th>Correo</th>
<th>Asesor Comercial</th>
<th>Ciudad</th>
<th>Fecha Creación</th>
<th>Estado</th>
<th>Ultima Modificacion</th>
<th>Nota</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let op of oportunidades">
<td>{{op.id}}</td>
<td>{{op.nomUno}}</td>
<td>{{op.nomDos}}</td>
<td>{{op.apeUno}}</td>
<td>{{op.apeDos}}</td>
<td>{{op.documento}}</td>
<td>{{op.celular}}</td>
<td>{{op.emailUno}}</td>
<td>{{op.claveAsesor}}</td>
<td>{{op.municipio}}</td>
<td>{{op.fechaCreacion}}</td>
<td>{{op.estado}}</td>
<td>{{op.ultimaModificacion}}</td>
<td>
<div class="btn-group float-right" role="group" aria-label="Basic example">
<p-button label="Notas" icon="fa fa-check" iconPos="left" (click)="verNota(template,op.id)"></p-button>
</div>
</td>
</tr>
</tbody>
</table>
Thanks