How can I map a field computed using ko.viewmodel
问题 Do not know how I can map a field computed using ko.viewmodel anyone knows how it's done? much appreciate any help. var model = { firstName: "Le gatêau", lastName: "Chien", items: ['J-Rock', 'J-Pop'], itemselected: 'J-Pop', all: function(){ return firstName + ', ' + lastName + ', ' + itemselected }, }; EDIT: I regret not having been more clear, I edit my question, I am using ko.viewmodel plugin to convert an object to a ko model, but not as a field ko.computed the object is defined to ko when