I am trying to use KnockoutJS on Node.js.
Found one implementation of the same here : https://github.com/mtscout6/knockout-node
Has anyone implemented this any other way?
Basically I want the capability to use Computed Observable on Server.
Is it possible to have this feature in javascript using any other library?
I would hardly recommend you not to use this architecture, because it is less documented and you won't find much support about this over the web. Furthermore KO is intended to work as an client framework. If it is nothing confidential, pass the values and compute client-side?
On Client side it will look like
this.fullName = ko.computed(function() {
return this.firstName() + " " + this.lastName();
}, this);
inside your viewmodel.
Found a solution from knockoutJS mailing list.
There is one node-module which provides exactly same functionality as regards computed observables and subscriptions.
"Obs" provides minimalist observable properties.
It is awesome..