AngularJS 不使用大数字初始化输入 [type=range]

AngularJS does not initialize input[type=range] with big numbers

我在将输入 [type=range] 绑定到 AngularJS 时遇到问题。

这是我的 HTML 代码:

<input type="range" min="{{test.testMin}}" max="{{test.testMax}}" step="{{test.testStep}}" ng-model="test.testVal" />

在我的控制器中:

$scope.test = {
 testMin : 0,
 testMax : 50000,
 testVal : 10000,
 testStep : 5000
};

问题是滑块值未初始化(0 而不是 10000)。

奇怪的是它适用于较小的 testMax 和 testVal 值。

这是当前 AngularJS 错误:https://github.com/angular/angular.js/issues/6726