Angular Maxlength Directive Entrada Tipo Número

//maxlength="10"
<input type="number" onKeyPress="if(this.value.length==10) return false;" />
Repulsive Rattlesnake