Skip to content

Instantly share code, notes, and snippets.

@azaharafernandezguizan
Created December 21, 2018 11:05
Show Gist options
  • Save azaharafernandezguizan/4e25f9ded82cef1d47be34ae0bad3dd8 to your computer and use it in GitHub Desktop.
Save azaharafernandezguizan/4e25f9ded82cef1d47be34ae0bad3dd8 to your computer and use it in GitHub Desktop.
Table with bootstrap pagination
<div>
<ul>
<li>
nombre
<i [class]="getIcon('name')" aria-hidden="true"></i>
</li>
<li>
apellidos
<i [class]="getIcon('lastname')" aria-hidden="true"></i>
</li>
<li>
teléfono
<i [class]="getIcon('email')" aria-hidden="true"></i>
</li>
<li>
email
<i [class]="getIcon('course')" aria-hidden="true"></i>
</li>
</ul>
<ul *ngFor="let student of studentsList">
<li>{{student.name}}</li>
<li>{{student.lastname}}</li>
<li>{{student.email}}</li>
<li>{{student.course}}</li>
</ul>
<div>
<ngb-pagination *ngIf="showPagination" [collectionSize]="totalItems" [(page)]="page"
(pageChange)="loadPage($event)"></ngb-pagination>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment