Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 26, 2018 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/1f58571382d4e1b7b02e860b10341b83 to your computer and use it in GitHub Desktop.
Save uno-de-piera/1f58571382d4e1b7b02e860b10341b83 to your computer and use it in GitHub Desktop.
<div *ngIf="todos.length > 0">
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>TODO</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let todo of todos">
<td>{{ todo.id }}</td>
<td>{{ todo.todo }}</td>
</tr>
</tbody>
</table>
<div class="row justify-content-center" *ngIf="todos.length > 0 && !empty">
<div *ngIf="loading" class="alert alert-warning d-block text-center position-absolute">Cargando datos...</div>
<div class="search-results"
infiniteScroll
[infiniteScrollDistance]="2"
[infiniteScrollThrottle]="50"
(scrolled)="onScroll()">
</div>
</div>
<div *ngIf="empty" class="alert alert-primary d-block text-center">Ya no hay más datos!</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment