Skip to content

Commit 66d0419

Browse files
author
Tyler Eich
committed
feat(input): add input type=range support
Bind model of <input type="range"> to number (like <input type="number">) rather than string. Range inputs represent numerical values; therefore, a numerical binding makes more sense than a string binding. Closes angular#1189, angular#5892
1 parent fd824be commit 66d0419

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ng/directive/input.js

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ var inputType = {
159159
</doc:example>
160160
*/
161161
'number': numberInputType,
162+
'range': numberInputType,
162163

163164

164165
/**

0 commit comments

Comments
 (0)