Skip to content

@konrad-garus /gist:4733108
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Compilation of KO sample from David Nolen
var hello_clojurescript = {AppViewModel:function(a, b, c) {
this.firstName = a;
this.lastName = b;
this.fullName = c
}};
hello_clojurescript.AppViewModel.cljs$lang$type = !0;
hello_clojurescript.AppViewModel.cljs$lang$ctorPrSeq = function() {
return cljs.core.list.call(null, "hello-clojurescript/AppViewModel")
};
hello_clojurescript.AppViewModel.cljs$lang$ctorPrWriter = function(a, b) {
return cljs.core._write.call(null, b, "hello-clojurescript/AppViewModel")
};
hello_clojurescript.AppViewModel;
hello_clojurescript.my_model = function(a, b) {
return new hello_clojurescript.AppViewModel(ko.observable(a), ko.observable(b), ko.computed([cljs.core.str(hello_clojurescript.firstName.call(null)), cljs.core.str(" "), cljs.core.str(hello_clojurescript.lastName.call(null))].join("")))
};
ko.applyBindings(hello_clojurescript.my_model.call(null, "Bob", "Smith"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.