Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A mashup of Knockout.js and Now.js
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
.gitignore
LICENSE
README.md
ko.now.js

README.md

Knockout-Now

What?

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.

Usage:

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;

Is it any good?

Yes!

Prove it!

Okie Dokie, check it out:

Notes:

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",
Something went wrong with that request. Please try again.