maxlength validator on type number code example Example: validation maxlength angular Validators.maxLength(11)