<tabs>
<div ng-repeat="dept in dpt.depts">
<pane title={{dept.DepartmentName}}>
<div class="panel panel-default" >
<div class="panel-heading" >
<h6>
Programmes
</h6>
</div>
<div class="panel-body" >
<ul class="list-group" >
<li class="list-group-item" ng-repeat="prog in dept.Programmes|filter: {DepartmentID:dept.DepartmentID}">
{{prog.ProgramName}}
</li>
</ul>
</div>
</div>
</pane>
</div>
部门名称显示为面板标题,但在各个部门中运行的程序显示在所有选项卡上。想法是将每个部门的程序限制在相关选项卡中。
提前致谢