Add data-binding for lists

This commit is contained in:
Jeremy Likness
2019-11-25 16:46:59 -08:00
parent a4ae68dfb8
commit 0cab33efe5
5 changed files with 55 additions and 3 deletions

View File

@@ -2,4 +2,4 @@
<h1>I'm Not Anti-Angular!</h1>
<i>Here's proof from 2014...</i>
<img src="/images/ng-conf.png" class="expandable" alt="Inside the inaugural Angular conference ngConf"
title="Inside the inaugural Angular conference ngConf" />
title="Inside the inaugural Angular conference ngConf" />

8
slides/data-binding.html Normal file
View File

@@ -0,0 +1,8 @@
<title>Data-Binding Example 1</title>
<h1>Data-Binding Example</h1>
<ul>
<li repeat="list" class="appear">{{item.idx}} &mdash; {{item.value}}</li>
</ul>
<script>
this.list = [{idx: 0, value:"one"}, {idx: 1, value:"two"}, {idx: 2, value:"three"}];
</script>