Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfaa462

Browse files
committed
item id is bound one-time in aurelia
1 parent 81bdc8c commit cfaa462

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

aurelia-v1.1.2-non-keyed/src/app.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ <h1>Aurelia v1.1.2</h1>
3030
<table class="table table-hover table-striped test-data">
3131
<tbody>
3232
<tr repeat.for="item of store.data" class-name.bind="item.id === store.selected ? 'danger' : ''">
33-
<td class="col-md-1">${item.id}</td>
33+
<td class="col-md-1">${item.id & oneTime}</td>
3434
<td class="col-md-4">
3535
<a click.delegate="select(item)">${item.label}</a>
3636
</td>
37-
<td class="col-md-1"><a click.delegate="remove(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
37+
<td class="col-md-1"><a click.delegate="remove(item)">
38+
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
39+
</td>
3840
<td class="col-md-6"></td>
3941
</tr>
4042
</tbody>

0 commit comments

Comments
 (0)