input type number maxlength not working angular 6 code example
Example: angular maxlength directive input type number
//maxlength="10"
<input type="number" onKeyPress="if(this.value.length==10) return false;" />
//maxlength="10"
<input type="number" onKeyPress="if(this.value.length==10) return false;" />