I'm building a form with AngularJS, and I noticed some behavior I don't understand.
When I assign ng-minlength=5 as an input attribute, AngularJS unbinds the value until it is longer than required.
This is inconvenient for me because I'd like to tell the user how much content they've entered using user.lifestory.length.
Why does AngularJS work this way? How can prevent Angular from unbinding the value while it's invalid?
<label for="lifeStory">Life story:<input name='lifeStory' type="text" ng-model='user.lifeStory' ng-minlength='5' required></input></label>
An example of this is here: http://jsfiddle.net/J67jm/3/
You can see the behavior I'm talking about by filling in the life story field.