Until now I have the following, I have my provider with the following code
@Injectable({
providedIn: 'root'
})
export class GetActuariosService {
configUrl = 'https://xxxxxxxxxxx';
constructor(private http: HttpClient) {
}
getConfig() {
return this.http.get(this.configUrl);
}
}
and in my component I receive it like this:
ngOnInit( ) {
this.service.getConfig().subscribe((data) => {
this.items = data;
});
and on the side of the html I want to paint it in a table:
<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>
and he paints me the data correctly but he adds a note below that says 'No data available in the table',
and if I search for any existing data in the search field, the same thing appears:
It's as if that data did not exist inside the table, but nevertheless paints the data I use this library for tables link