Hasta Ahora tengo lo siguiente, tengo mi provider con el siguiente codigo
@Injectable({
providedIn: 'root'
})
export class GetActuariosService {
configUrl = 'https://xxxxxxxxxxx';
constructor(private http: HttpClient) {
}
getConfig() {
return this.http.get(this.configUrl);
}
}
y en mi componente lo recibo asi:
ngOnInit( ) {
this.service.getConfig().subscribe((data) => {
this.items = data;
});
y en el lado del html lo quiero pintar en una tabla:
<table datatable class="table table-striped">
<thead>
<tr>
<th>Nº</th>
<th>Nº</th>
<th>Nº</th>
</tr>
</thead>
<tbody >
<tr *ngFor="let info of items">
<th scope="row">{{info.nombre}}</th>
<th scope="row">{{info.nombre}}</th>
<th scope="row">{{info.nombre}}</th>
</tr>
</tbody>
</table>
y me pinta los datos correctamente pero me agrega un nota abajo que dice 'No hay datos disponibles en la tabla',
y si busco algun dato existente en el campo buscar, me aparece lo mismo:
es como si esos datos no existieran dentro de la tabla, mas sin embargo pinta los datos utilizo esta libreria para las tablas https://l-lin.github.io/angular-datatables/#/getting-started