Skip to content

Commit b6b8791

Browse files
committed
Fixed missing tbody
1 parent c7038df commit b6b8791

File tree

4 files changed

+40
-32
lines changed

4 files changed

+40
-32
lines changed

angular-v1.5.7/index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ <h1>Angular v1.5.7</h1>
3939
</div>
4040
</div>
4141
<table class="table table-hover table-striped test-data">
42-
<tr ng-repeat="item in homeController.data track by item.id" ng-class="{ danger: item.id === homeController.selected }">
43-
<td class="col-md-1">{{item.id}}</td>
44-
<td class="col-md-4">
45-
<a ng-click="homeController.select(item)">{{item.label}}</a>
46-
</td>
47-
<td class="col-md-1"><a ng-click="homeController.del(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
48-
<td class="col-md-6"></td>
49-
</tr>
42+
<tbody>
43+
<tr ng-repeat="item in homeController.data track by item.id" ng-class="{ danger: item.id === homeController.selected }">
44+
<td class="col-md-1">{{item.id}}</td>
45+
<td class="col-md-4">
46+
<a ng-click="homeController.select(item)">{{item.label}}</a>
47+
</td>
48+
<td class="col-md-1"><a ng-click="homeController.del(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
49+
<td class="col-md-6"></td>
50+
</tr>
51+
</tbody>
5052
</table>
5153
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
5254
</div>

angular-v2.0.0-rc4/src/app.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ interface Data {
3838
</div>
3939
</div>
4040
<table class="table table-hover table-striped test-data">
41-
<tr [class.danger]="item.id === selected" *ngFor="let item of data">
42-
<td class="col-md-1">{{item.id}}</td>
43-
<td class="col-md-4">
44-
<a href="#" (click)="select(item, $event)">{{item.label}}</a>
45-
</td>
46-
<td class="col-md-1"><a href="#" (click)="delete(item, $event)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
47-
<td class="col-md-6"></td>
48-
</tr>
41+
<tbody>
42+
<tr [class.danger]="item.id === selected" *ngFor="let item of data">
43+
<td class="col-md-1">{{item.id}}</td>
44+
<td class="col-md-4">
45+
<a href="#" (click)="select(item, $event)">{{item.label}}</a>
46+
</td>
47+
<td class="col-md-1"><a href="#" (click)="delete(item, $event)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
48+
<td class="col-md-6"></td>
49+
</tr>
50+
</tbody>
4951
</table>
5052
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
5153
</div>

aurelia-v1.0.0-rc1.0.0/src/app.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ <h1>Aurelia v1.0.0-rc1.0.0</h1>
2828
</div>
2929
</div>
3030
<table class="table table-hover table-striped test-data">
31-
<tr repeat.for="item of rows" class="${ item.id === selected ? 'danger' : ''}">
32-
<td class="col-md-1">${item.id}</td>
33-
<td class="col-md-4">
34-
<a click.trigger="select(item)">${item.label}</a>
35-
</td>
36-
<td class="col-md-1"><a click.trigger="remove(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
37-
<td class="col-md-6"></td>
38-
</tr>
31+
<tbody>
32+
<tr repeat.for="item of rows" class="${ item.id === selected ? 'danger' : ''}">
33+
<td class="col-md-1">${item.id}</td>
34+
<td class="col-md-4">
35+
<a click.trigger="select(item)">${item.label}</a>
36+
</td>
37+
<td class="col-md-1"><a click.trigger="remove(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
38+
<td class="col-md-6"></td>
39+
</tr>
40+
</tbody>
3941
</table>
4042
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
4143
</div>

vue-v1.0.26/index.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ <h1>Vue.js v1.0.26</h1>
3939
</div>
4040
</div>
4141
<table class="table table-hover table-striped test-data">
42-
<tr v-for="item in rows" track-by="id" v-bind:class="{'danger' : item.id === selected}">
43-
<td class="col-md-1">{{item.id}}</td>
44-
<td class="col-md-4">
45-
<a v-on:click="select(item)">{{item.label}}</a>
46-
</td>
47-
<td class="col-md-1"><a v-on:click="remove(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
48-
<td class="col-md-6"></td>
49-
</tr>
42+
<tbody>
43+
<tr v-for="item in rows" track-by="id" v-bind:class="{'danger' : item.id === selected}">
44+
<td class="col-md-1">{{item.id}}</td>
45+
<td class="col-md-4">
46+
<a v-on:click="select(item)">{{item.label}}</a>
47+
</td>
48+
<td class="col-md-1"><a v-on:click="remove(item)"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>
49+
<td class="col-md-6"></td>
50+
</tr>
51+
</tbody>
5052
</table>
5153
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
5254
</div>

0 commit comments

Comments
 (0)