Validating model using the Knockout validation plugin
Knockout validation is a plugin for validating the model. It uses the Knockout extenders to provide validation, similar to the concept described in the previous section. The advantage of using this plugin is that the most common extenders are already defined for you. All you have to do is configure and apply the extenders. This section will explore and demonstrate the use of the validation plugin for validating the model. The examples in this section will apply this method of validation to all the fields in the customer registration form application. You can make a copy of the customer registration form application developed in the previous chapter and apply the validation by performing the ...
Get KnockoutJS by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.