Summary
A quick summary of the contents of the chapter.
We'll cover the following
Key takeaways
-
This chapter started by identifying the new issues that would arise when adding constraint validations to the application. Once we identified the changes we had to make to the model and view, we made the JavaScript class.
-
We then converted our information design model to a JavaScript class model by creating check methods to implement the constraints and set methods to set values only if no constraints are violated.
-
After that we set up the new folder structure that included the
lib
folder for the library files. -
We coded the model logic that implements the constructor function, the property checks and property setters, as well as serialization and data management. Finally, we coded the view to set up the updated user interface.
Get hands-on with 1400+ tech skills courses.