I'm using the MomentModule ( https://github.com/urish/ngx-moment ) with my Angular 9 application. In my compoment, I have a function that returns a Date
getCreatedOn(stat: Stat): Date { ... }
and then I use the pipe like so
{{ getCreatedOn(stat) | amTimeAgo }}
For values that are less than an hour from now, I see results like
37 minutes ago
which is just fine. For values greater than 1 hour, the result printed is
1 hour ago
What I would like is for it to print the minutes as well
1:32 ago
How would I configure the pipe to display minutes? If the result is greater than 1 day, it is fine if the module continues to print
1 day ago
2.1m questions
2.1m answers
60 comments
57.0k users