angular/angular.js — pull request #9277 by caitp (2014-09-25 16:18:24+00:00)
Title: fix(input): format as string before running minlength/maxlength formatters

Previously, minlength/maxlength would not work correctly when dealing with
non-string model values.

A better fix for this has already been implemented in 1.3, but unfortunately
implementing that fix in 1.2 is a bit harder as it requires a number of
commits to be backported in order to solve the problem correctly.

Closes #5936