Skip to content
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

amDateFormat does not refresh and and the browser is frozen #214

Open
Hugoer opened this issue Jul 8, 2019 · 0 comments
Open

amDateFormat does not refresh and and the browser is frozen #214

Hugoer opened this issue Jul 8, 2019 · 0 comments

Comments

@Hugoer
Copy link

Hugoer commented Jul 8, 2019

Description of the Issue and Steps to Reproduce:

If I try to change two or three consecutive times (regardless of the time that passes between each click) the language (moment.updateLocale), the application remains frozen and the browser does not respond. I've also noticed that I can not get the amDateFormat format updated (amTimeAgo does). I tried to force the update of the change, but I can not make it work correctly.

Initially it is all in modules, but from the component "home.component" I get the same result, since it could be due to an incorrect injection of dependencies, or any other reason.

I've been looking at "issues" and searching through google, but I have not found anyone who happens to this.

Install this repository:
https://github.com/Hugoer/angular-seed/tree/feature/ngx-moment-bug-updatelocale
npm install
npm start

Did you search for duplicate issue? [No]

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:

windows 10

Please answer the following questions:

  • Angular version? 8.2.0-next.0
  • TypeScript version? 3.4.3
  • moment version? 2.24.0
  • Are you using moment-timezone? No
  • Are you using the angular-cli? Yes
  • Using Rollup/Webpack/System.js/Ionic/similar? No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant