Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using the simple change tracking
var viewModel = {
Name: ko.observable("Pete"),
Age: ko.observable(29),
Occupation: ko.observable("Developer")
};
applyChangeTracking(viewModel);
viewModel.Occupation("Unemployed");
getChangesFromModel(viewModel);
// -> { "Occupation": "Unemployed" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.