mirror of
https://github.com/esiur/iui.git
synced 2025-06-27 17:33:12 +00:00
scope
This commit is contained in:
13
docs/md/getting-started/scope.md
Normal file
13
docs/md/getting-started/scope.md
Normal file
@ -0,0 +1,13 @@
|
||||
# Scope Variables
|
||||
|
||||
Scope variables are provided during the rendering process to the scripts and declarative rendering functions.
|
||||
|
||||
These variables propagate from an element to its children and could be altered or overwritten by any element in the tree so the children of that element receive a new value for these variables.
|
||||
|
||||
|
||||
<i-codepreview>
|
||||
<div :scope="{now: new Date()}">
|
||||
<div>Date: ${now.toDateString()}</div>
|
||||
<div>Time: ${now.toTimeString()}</div>
|
||||
</div>
|
||||
</i-codepreview>
|
Reference in New Issue
Block a user