Cancel updating the personal information

We gave our users the ability to edit their personal information in the previous user story. Once the users start editing, they do not have a way to cancel if they don't want to go ahead with the changes. In this user story, we will give our users the ability to cancel editing the personal information form. The requirement of the user story is to provide a button, with a label Cancel, in the edit mode. Clicking the Cancel button should revert any changes made to the form fields and take the form out of the edit mode. The user would also like to be informed that the edit was cancelled and any change to personal information was not saved.

Let's start by adding the Cancel button to the view. Add a button under ...

Get KnockoutJS by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.