How to validate an array?
问题 I am trying to use knockout validation lib to validate an array of objects. It is not straightforward to me how to form a validation group for an array of observables. The only way I managed to make it work is like this (JSFIDDLE included): var Note = function () { var self = this; self.name = ko.observable().extend({ required: true }); }; var viewModel = function() { var self = this; self.notes = ko.observableArray([new Note(), new Note()]); self.validatedObservables = function() { var arr =