maxlength for input type number in angular 11 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;" />