Search⌘ K

New Issues

Explore how to handle constraint validation challenges in plain JavaScript applications. Learn to create validation check functions in model classes and ensure data integrity through user input feedback and multiple validation layers in both UI and model.

We'll cover the following...

Challenges of adding constraint validation

We have to deal with several new issues that were not present in the MinimalApp that we discussed before:

  1. In the model code, for every property of a class we have to add the following:

    • A check function that can be invoked for validating the constraints defined for the property.
    • A setter method
...