我需要使用ng-model将值设置为输入类型='数字',但是尽管将我的范围变量解析为我的控制器中的整数,我的控制台会向我抛出一条错误消息:错误:[ngModel:numfmt] < / p>
//controller
$scope.theGrace = parseInt($scope.customer.Grace);
//jade file
input.form-control(type='number' name='Grace' id='Grace' ng-model='theGrace')
我错过了什么吗?