When using object literals you need to define your computed properties separately:
var viewModel = ko.validatedObservable({
propety1: ko.observable().extend({ required: true }),
form_onsubmit: function(form) {
console.log(this.propety1());
return false;
}
});
viewModel().propety2 = ko.computed(function () {
return this.propety1();
}, viewModel());
Simply passing this
as the second argument is not enough because it will refer to the global window object and not the object literal itself.