IT:AD:Knockout-Validation.JS
Summary
Validation of the ViewModel/ with Knockout-Validation offers distinct advantages of JQuery validation, MVC validation etc, which are validating the View/'s markup.
The advantage is that instead of validating a View/ serialiazation of the data in an error-prone way (eg: “$3.00” in an input@value
has to be first parsed/converted to a number), just validate the actual ViewModel/ property directly.
Advantages:
- simpler,
- less error prone,
- more testable.