ng-change with value with leading zero - 零消失了控制器

ng-change with value with leading zero - zero is gone controller

我有一个这样的输入字段:

<input id="0900" type="radio" ng-model="formData.appointment_hour" ng-change="change(0900)" name="appointment" value="0900" class="ng-valid ng-dirty">

但是当我查看控制器中的函数时:

$scope.change = function(key){
    console.log(key);
};

我的控制台记录 900。问题是我不想让前导零消失。我该如何解决这个问题?

将值作为字符串处理:

<input id="0900" type="radio" ng-model="formData.appointment_hour" ng-change="change('0900')" name="appointment" value="0900" class="ng-valid ng-dirty">