var titleModel = function () {
this.title = ko.observable("test");
this.desc = ko.observable("test");
return
{
title: this.title,
desc: this.desc
}
}
The above code is a model where i want to give access only title,desc from return function only. However, it says a ';' is required. I think the syntax is correct.
However, if i remove the return all works correctly.
I would appreciate if anyone could tell me what the issue is.