ng2-validation icon indicating copy to clipboard operation
ng2-validation copied to clipboard

Request: Array length validation

Open thilina01 opened this issue 7 years ago • 2 comments

Request: Array length validation

Looking for something like this itemArray: [[], CustomValidators.arrayMinLength(1)]

by that, form control element 'itemArray' should contain at least one element in it for the form to be valid. and as well as arrayMaxLength may also be useful

thilina01 avatar Feb 27 '17 08:02 thilina01

welcome PR

yuyang041060120 avatar Feb 27 '17 08:02 yuyang041060120

@yuyang041060120, since Angular 2.3.1 they fixed the issue with length of FormArray. IMHO, there's no necessity to add this here.

rafaelss95 avatar May 26 '17 04:05 rafaelss95