Classic Example of MomentJS library integrate with table format in html in Angular2
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Every record you can see will be having same inital value as "a few seconds ago".
Wait for atleast a mintues so each record will be updated using "a minute ago" caption.
Once you click on reload button, only that record will be updated.
Sampe approach can be used with Angular2 table format.