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