angular 表格跨行

来源:互联网 发布:复古相机软件 编辑:程序博客网 时间:2024/06/17 00:04
<table class="table table-bordered">    <thead>        <tr>            <th>teacher</th>            <th>student</th>            <th>project</th>        </tr>    </thead>    <tbody ng-repeat="teacher in vm.teachers">        <tr ng-repeat="student in teacher.student track by $index">            <td ng-if="$index ==0" rowspan={{teacher.student.length}}>{{teacher.name}}</td>            <td>                <span ng-bind="student.name"></span>            </td>            <td><span ng-bind="student.project"></span>            </td>        </tr>    </tbody>

</table>

0 0