0
我正在創建一個Web應用程序,其中包含一個表格和一個複選框,如果選中該複選框我想要顯示錶格中有多少行數,計算我的表的總行數並在控制檯中打印angularjs
,如:
<table>
<thead>
<tr>
<td>
<input type="checkbox" ng-model="checkall" ng-click="clickcheckall()"/>
</td>
<td>other td</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="somedata in table">
<td></td>
<td></td>
</tr>
</tbody>
</table>
,在這裏我想打印
{{showcheckalldata}}
在我的控制器
我有變量範圍
$scope.showcheckalldata='';
如果我想打印列數,我需要做什麼?