Skip to content

Instantly share code, notes, and snippets.

@balvinder294
Created March 15, 2020 14:07
Show Gist options
  • Save balvinder294/6aab01fe0e99021a25080eeb7ba02695 to your computer and use it in GitHub Desktop.
Save balvinder294/6aab01fe0e99021a25080eeb7ba02695 to your computer and use it in GitHub Desktop.
Sample Tracker COmponent from Jhipster for Tracking users logged in --- Tekraze.com
<div>
<h2 id="tracker-page-heading">Real-time user activities</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>User</th>
<th>IP Address</th>
<th>Current page</th>
<th>Time</th>
<th></th>
</tr>
</thead>
<tbody>
<tr *ngFor="let activity of activities">
<td>{{activity.userLogin}}</td>
<td>{{activity.ipAddress}}</td>
<td>{{activity.page}}</td>
<td>{{activity.time | date:'yyyy-MM-dd HH:mm:ss'}}</td>
</tr>
</tbody>
</table>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment