Skip to content

jameskeane/knockout-now

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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",

About

A mashup of Knockout.js and Now.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published