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

Set value programmatically not working #144

Open
VeeRHunter opened this issue Jan 6, 2022 · 0 comments
Open

Set value programmatically not working #144

VeeRHunter opened this issue Jan 6, 2022 · 0 comments

Comments

@VeeRHunter
Copy link

I am using this ngx-currency in Angular Typescript project.
And I want to set value programmatically to the ngx-currency input field, but when I try to set value, it is not working correctly.
For example, to set value $1,232.00, I used this code.
this.formGroup(controlName).setvalue(1232);

But the result of value is 100 times, so it is showing $123,200.00,
What is the solution of this?

Best regards.

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