mirror of
https://github.com/JeremyLikness/vanillajs-deck
synced 2025-12-16 03:04:02 +00:00
Add data-binding for lists
This commit is contained in:
8
slides/data-binding.html
Normal file
8
slides/data-binding.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<title>Data-Binding Example 1</title>
|
||||
<h1>Data-Binding Example</h1>
|
||||
<ul>
|
||||
<li repeat="list" class="appear">{{item.idx}} — {{item.value}}</li>
|
||||
</ul>
|
||||
<script>
|
||||
this.list = [{idx: 0, value:"one"}, {idx: 1, value:"two"}, {idx: 2, value:"three"}];
|
||||
</script>
|
||||
Reference in New Issue
Block a user