I'm looking forward to using amber, but am unsure of how the 'this' keyword from js is mapped.
Would someone be able to post up a little example of how amber might be able to work with a js framework like knockoutjs.
The simplest example is on:
http://knockoutjs.com/examples/helloWorld.html
and the Js is:
var
ViewModel =
function
(first, last) {
this
.firstName = ko.observable(first);
this
.lastName = ko.observable(last);
this
.fullName = ko.computed(
function
() {
return
this
.firstName() +
" "
+
this
.lastName();
},
this
);
};
ko.applyBindings(
new
ViewModel(
"Planet"
,
"Earth"
));