Assume my model is very simple (a list of strings), and I don't want to put typed objects into observableArray
and then validate it using deep validation ko.validation.init( { grouping: { deep: true } } )
.
E.g. I want all array elements (which are plain strings) to comply with minLength:3
.
Why ko.observable().extend({minLength:3})
is OK, but ko.observableArray().extend({minLength:3})
doesn't work?
Is there a workaround other than putting objects (instead of plain strings) into array?
Fiddle to start with.