Update to Imba 1.3.1

This commit is contained in:
Sindre Aarsaether 2018-02-27 15:32:40 +01:00
parent 3a957df975
commit 053704524f
3 changed files with 3562 additions and 8 deletions

View File

@ -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"
} }

View File

@ -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
<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 -> Imba.mount <App[store]>
<header>
<input model='title' placeholder="New..." :keyup.enter.addItem>
<button :tap.addItem> 'Add item'
<ul> for item in data:items
<li> item:title

3552
yarn.lock Normal file

File diff suppressed because it is too large Load Diff