title: Why does Angular provide ng-maxlength when there is a standard maxlength?
body: <p>HTML <a href="http://www.w3schools.com/tags/att_input_maxlength.asp">provides</a> a standard maxlength attribute since version 4.01.
  Angular provides a <a href="https://docs.angularjs.org/api/ng/directive/input">ng-maxlength</a> directive.</p>
  
  <p>The difference is that the standard approach doesn't allow entering more than max, while Angular's approach just generates a validation error.</p>
  
  <p>Why did they decide to include such a directive? It's not because of dynamic data binding of maxlength since the behaviour is inconsistent. It's not because of compatibility since it's available even in HTML 4.01. My only guess is that it's there to provide an alternative validation paradigm, but it sounds like over-engineering.</p>