Last active
December 26, 2015 12:29
-
-
Save jtulach/7151306 to your computer and use it in GitHub Desktop.
Hello World via Knockout4Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 data-bind="text: say">Say something</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the live snippet by visiting its DEW at http://dew.apidesign.org/dew/#7151306