I am using the nav-tab class in bootstrap but I have these tabs as content to an accordion's panel body. I'm using Ng-repeat to fill in the number of tabs and the content of the tags.
<div class="panel-body">
<ul class="nav nav-tabs">
<li ng-repeat="sub in All | unique:'onderwerpen'"><a data-toggle="tab" href="#{{sub.onderwerpen}}">{{sub.onderwerpen}}</a></li>
</ul>
<div class="tab-content">
<div id="{{sub.onderwerpen}}" class="tab-pane fade active">
<table class="table table-bordered text-center">
<thead>
<tr>
<th>Jaar</th>
<th>Waarde</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
this is the code for the nav-tabs, but I think the id's I variably assign using the {{sub.onderwerpen}}
isn't appointing correctly but I don't know what's wrong.
I don't know if this is relevant but the sub.onderwerpen
only gives back strings that contain spaces, would this be the issue? if so, how can I fix this?
Before answering, I am not able to use {{$index}}
as a parameter to bind to id's because I used that in the parent panel.