-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting relativeTimeThresholdOptions object doesn't work #231
Comments
The If you add a call in your template to the |
That's weird. |
When using See example |
Description of the Issue and Steps to Reproduce:
Did you search for duplicate issue? [Yes /
no]Please describe the issue and steps to reproduce, preferably with a code sample / plunker:
Adding the
relativeTimeThresholdOptions
object to the imports as shown in the Usage section of the readme doesn't change the moment relative time thresholds.Demo
Please see StackBlitz demo here
Notes
relativeTimeThresholdOptions
object is set inapp.module.ts
and should set thess
threshold to1
(so that seconds start showing nearly right away).ss
threshold value returns44
, which is the default (s
==45
,ss
==s - 1
).app.component.ts
, uncommenting line 16.The workaround is to set
moment.relativeTimeThreshold
manually, but this is kludgy.Ensure your issue is isolated to ngx-moment. Issues involving third party tools will be closed unless submitted by the tool's author/maintainer.
Environment:
Please answer the following questions:
^8.0.0 & higher
~3.1.1
moment
version?^2.24.0
moment-timezone
?no
yes
n/a
The text was updated successfully, but these errors were encountered: