mirror of
https://github.com/esiur/iui.git
synced 2025-06-27 17:33:12 +00:00
docs
This commit is contained in:
12
docs/md/getting-started/data-flow.md
Normal file
12
docs/md/getting-started/data-flow.md
Normal file
@ -0,0 +1,12 @@
|
||||
# Data flow
|
||||
|
||||
When the :data attribute is set to an element any other attribute and child will be able to access this field directly using the variable *data* or the shortended *d*.
|
||||
|
||||
|
||||
<i-codepreview>
|
||||
<div :data="{name: 'Ahmed Zamil', job: 'Developer'} ">
|
||||
My name is ${d.name} and I work as a ${d.job}.
|
||||
</div>
|
||||
</i-codepreview>
|
||||
|
||||
|
Reference in New Issue
Block a user