mirror of
https://github.com/esiur/iui.git
synced 2025-09-13 23:23:19 +00:00
Refs
This commit is contained in:
@@ -10,4 +10,15 @@ These variables propagate from an element to its children and could be altered o
|
||||
<div>Date: ${now.toDateString()}</div>
|
||||
<div>Time: ${now.toTimeString()}</div>
|
||||
</div>
|
||||
</i-codepreview>
|
||||
</i-codepreview>
|
||||
|
||||
# Events
|
||||
|
||||
Events can access scope variables when declared with *@eventName*
|
||||
|
||||
<i-codepreview>
|
||||
<div :scope="{now: new Date()}">
|
||||
<button @click="this.innerHTML = now">Click me</button>
|
||||
</div>
|
||||
</i-codepreview>
|
||||
|
||||
|
Reference in New Issue
Block a user