Update to Imba 1.3.1
This commit is contained in:
parent
3a957df975
commit
053704524f
|
@ -26,7 +26,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.16.2",
|
"express": "^4.16.2",
|
||||||
"imba": "1.3.0-beta.6",
|
"imba": "1.3.1",
|
||||||
"webpack": "^3.10.0",
|
"webpack": "^3.10.0",
|
||||||
"webpack-dev-server": "^2.11.1"
|
"webpack-dev-server": "^2.11.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,16 +9,18 @@ var store = {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tag App
|
tag App
|
||||||
def addItem
|
def addItem
|
||||||
data:items.push(title: data:title)
|
data:items.push(title: data:title)
|
||||||
data:title = ""
|
data:title = ""
|
||||||
|
|
||||||
|
def render
|
||||||
Imba.mount <App[store].vbox ->
|
<self.vbox>
|
||||||
<header>
|
<header>
|
||||||
<input model='title' placeholder="New..." :keyup.enter.addItem>
|
<input[data:title] placeholder="New..." :keyup.enter.addItem>
|
||||||
<button :tap.addItem> 'Add item'
|
<button :tap.addItem> 'Add item'
|
||||||
<ul> for item in data:items
|
<ul> for item in data:items
|
||||||
<li> item:title
|
<li> item:title
|
||||||
|
|
||||||
|
|
||||||
|
Imba.mount <App[store]>
|
Loading…
Reference in New Issue