You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
When I'm setting the time variable inside a promise response I get this odd behavior where angular-moment flashes the proper time, then it changes to "a few seconds ago." See here: https://www.dropbox.com/s/lp47wjilap0xpgh/angular-moment.mov
I've done a little debugging, not sure what the best fix is, but this some more info if it's useful.
value on line 25 is undefined.
the default moment(undefined) object gets passed to updateTime,
the secondsUntilUpdate is set to 1,
I'm guessing that in between the first call and the timeout angular-moment re-evaluates the directive, value is now the proper Date object, but then the timeout comes by and resets it every second.
Interesting... I suspect that in this case a new timeout is created with the proper value, but then, the old timeout still lives and that's why the flashing occurs.
Can you try to with the latest version I just committed and let me know if it resolves the issue?
When I'm setting the time variable inside a promise response I get this odd behavior where angular-moment flashes the proper time, then it changes to "a few seconds ago." See here: https://www.dropbox.com/s/lp47wjilap0xpgh/angular-moment.mov
controller:
view:
The text was updated successfully, but these errors were encountered: