JSFiddle - React, Tailwind, and code Playground
by jrieks
HTML
<div ng-app>
<ul>
<li>remove the "x", the length is then 4?</li>
<li>then add it again, the length is then 10</li>
</ul>
<div ng:init="counter=0; max=20; name='John x'">
<input maxlength="{{max}}" type="text" ng-model="name"/><br/>
<span>Name: {{name}}</span><br/>
<span>Length: {{name.length}}</span><br/>
<span>Left: {{max-name.length}}</span><br/>
</div>
</div>