For an input element with type number, when the number entered has leading zeros like '0000123456', the model is updated to 123456, while the view/input still remains the same 0000123456.
However if I switch from number to text everything works as expected. I would like to have number since it would display numeric keyboard for mobile devices.
<input type="number" ng-model="vm.orderid"/>
{{vm.orderid}}