Skip to content

Instantly share code, notes, and snippets.

@jtulach
Last active December 26, 2015 12:29
Show Gist options
  • Save jtulach/7151306 to your computer and use it in GitHub Desktop.
Save jtulach/7151306 to your computer and use it in GitHub Desktop.
Hello World via Knockout4Java
package dew.demo.ko4j;
import net.java.html.json.*;
@Model(className="Hello", properties={
@Property(name="say", type=String.class)
})
class HelloViaKO {
static {
Hello model = new Hello("Hello World!");
model.applyBindings();
}
}
<h1 data-bind="text: say">Say something</h1>
@jtulach
Copy link
Author

jtulach commented Oct 29, 2013

See the live snippet by visiting its DEW at http://dew.apidesign.org/dew/#7151306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment