-
Notifications
You must be signed in to change notification settings - Fork 25k
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
type="number" passes String as argument #4014
Comments
I don't seem to get an error in TypeScript, but it doesn't convert for me which is what I expected it to do. Would there be interest in converting to an int/number in cases where the type equals number? Or is this added complication and should be handled by other means |
I would assume that if the type is number - then the value exposed to the model would also be a numeric value. Dart throws an error as its a type mismatch - converting the variable type to String fixes the symptom, but it should not be String .... |
I have the latest beta version and I am still seeing this issue. A input with type=number using ngModel is returning a string to the model instead of a number. Any progress on this? |
@RemnantArcher Do you have a small plunk to verify this is till true as of Beta 15? I noticed that the tests don't cover the ng-model use-case, though on the surface don't see a reason why it should fail there. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When setting the field of:
From:
Using Angular Dart alpha 35
Fix: if i set the field to String bZip on the DTO object
The text was updated successfully, but these errors were encountered: