Skip to content

Instantly share code, notes, and snippets.

@bltavares
Created February 6, 2014 17:22
Show Gist options
  • Save bltavares/8848674 to your computer and use it in GitHub Desktop.
Save bltavares/8848674 to your computer and use it in GitHub Desktop.
var a = ko.observable();
var b = ko.computed(function () { return a() + 1; });
b() //=> NaN
a(1)
b() //=> 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment