I have trouble setting up a tabset with dynamic contents using ng-include. I tried unsuccessfully with ng-repeat :
<tabset justified="true"> <tab ng-repeat="tab in tabs" heading="{{ tab.heading }}" active="tab.active"> <div ng-include="tab.template"></div> </tab> </tabset>
Also, I tried without the ng-repeat :
<tabset justified="true"> <tab heading="{{ tabs.1.heading }}" active="tabs.1.active"> <div ng-include="'partial/profile/template1.html'"></div> </tab> <tab heading="{{ tabs.2.heading }}" active="tabs.2.active"> <div ng-include="'partial/profile/template2.html'"></div> </tab> <tab heading="{{ tabs.3.heading }}" active="tabs.3.active"> <div ng-include="'partial/profile/template3.html'"></div> </tab> <tab heading="{{ tabs.4.heading }}" active="tabs.4.active"> <div ng-include="'partial/profile/template4.html'"></div> </tab> <tab heading="{{ tabs.5.heading }}" active="tabs.5.active"> <div ng-include="'partial/profile/template5.html'"></div> </tab> </tabset>
Yet, what I get is a blanck page, not responding and those errors :
WARNING: Tried to load angular more than once.
and
10 $digest() iterations reached. Aborting!
FYI: the templates are mainly empty, the one not empty contain a basic table. How am I to make it work ?