Handling the Modal Form Data

Learn how to validate the data from our edit form and animate the edited contact on the application's main page.

At this point, we have our model window displayed that allows us to edit the contact details. We still need to process the form and update the model or display errors within the form.

Display errors

Displaying the errors on the form is pretty straightforward since we just trigger the view’s onFormDataInvalid method:

Get hands-on with 1200+ tech skills courses.