Altering ng-input to hold the viewValue instead of the modelValue, because the viewValue is set when user press ESC
Merge pull request #1858 from viniciusffj/2.x

ng-input hold $viewValue instead of $modelValue