Knockout-Now is a plugin for Knockout.js that adds automatic synchronization between client views and server variables using Now.js. It is amazingly amazing, and awesomely awesome.
In your Knockout ViewModel:
this.clicks = ko.observable().now('clicks');
and that's it ... really! Now your data-bound views will automagically update; whenever now.clicks
is changed from the server.
i.e.
everyone.now.clicks += 1;
Yes!
Okie Dokie, check it out:
Due to a bug, in the last release of Now.js (0.8.1). You must use my branch, this can be done by adding a dependency to your package.json file like this:
"now": "git://github.com/jameskeane/now.git",