Author: | keshavkhatri |
---|---|
Official Page: | Go to website |
Publish Date: | January 24, 2020 |
License: | MIT |
Description:
ngx-pretty-date is an Angular module that converts dates & times into Facebook-like human-readable timestamps (e.g. more than a year ago).
Install & Usage:
# NPM $ npm install ngx-pretty-date --save
import { NgxPrettyDateModule } from 'ngx-pretty-date'; @NgModule({ declarations: [ ... ], imports: [ ... NgxPrettyDateModule ], bootstrap: [...] }) export class AppModule { }
<span> {{dateObj | prettyDate}} </span>