Created
January 20, 2016 13:23
-
-
Save somebee/83b3243c643c7de2a18f to your computer and use it in GitHub Desktop.
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
tag textfield < input | |
def onchange | |
# updating the value | |
object[name] = value | |
def render | |
value = object[name] | |
var item = {nick: "mardo"} | |
<div> | |
<textfield[item] name='nick'> | |
<button :tap=(|e| window.alert("nick is {item:nick}"))> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment