Description
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