Two-way data binding is a great feature as long as you are fine with direct updates to your new model. But, if you want a more advanced step where UI changes can be cancelled, two-way data-binding gets in the way. There is a great solution for it using Protected Observable plugin created by Ryan Nemiyer.
- First we update KnockoutJS using Nuget
- Now that you have the observable code, modify the application so that you have two states, View and Edit. In the View state, you’ll see the blog item as non-editable, Edit view on the other hand will present an editable page.
Read the rest of the tutorial here:Â http://www.dotnetcurry.com/ShowArticle.aspx?ID=876