mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-01 12:33:37 +08:00
The documentation says that the input should be red if you enter invalid values or leave it blank. Because the type="integer" is not supported this does not happen in practice. This fix changes the input type to number and adds an ng-pattern to ensure that the number is an integer.