Please check the following JSFiddle: http://jsfiddle.net/rhulshof/6bd4g/4/
I’m experiencing 2 problems which I just can’t solve:
- I’m unable to display the number of validation errors in the View.
Self.errors()doesn’t seem to be an observable. Edit:: It works for the initialself.articles()rows; but just not for the rows added to the DOM later. - When adding two or more rows (articles), it says I have more validation errors than it actually has
I have a partial answer, you need to modify your validation configuration object
That will cause the messages to occur.
I’m not very familiar with the the knockout validation plug in, but once it has an error, the count doesn’t go below 1 for some reason. Not sure why that is happening.
EDIT
The count of error messages being off by 1 is a bug. The first error message in the message list is “null“. It is discussed in issues log at https://github.com/ericmbarnard/Knockout-Validation/issues/99