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 was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Can't share a data-ng-model between <input type="number" /> and <input type="range" /> #8241
Simply put, at least in chrome <input type="number" />.value is a number. and <input type="range" />.value is a string, so that's what is breaking the data-ng-model binding. That could be fixed with some casting with the ngModel directive (and possibly the ngBind directive).
On another note, the w3c spec for number input and range input both say the value should be a string representation of a number. Is this worth filing a bug with chrome over?
Hey @zippy1981, I edited your post so that the html tags show up. The general problem is that currently angular has no special range handling, but if it is added, this should be considered.
Activity
Narretz commentedon Jul 21, 2014
Hey @zippy1981, I edited your post so that the html tags show up. The general problem is that currently angular has no special
rangehandling, but if it is added, this should be considered.feat(input): add support to input[type=range]
feat(input): add support to input[type=range]
Narretz commentedon Jul 5, 2016
We are working on this (finally). Closing as a duplicate of #5892