angular 8 maxlength directive code example Example: validation maxlength angular Validators.maxLength(11)