I have a uib-tab with a heading an an ng-click method that loads the actual content by switching a boolean variable as follows.
<uib-tab class="height-full">
<uib-tab-heading ng-click="vm.loadTab(2)">
Rights
</uib-tab-heading>
<div>
<div ng-if="vm.active_tab == 2" ng-include="'../partials/partialview.html'"></div>
</div>
</uib-tab>
This doesn't have consistent behaviour, some times the loadTab it's not executed at all and the tab is indeed been loaded, how can I solve this ? can I prevent the tab-content from been loaded and wait for the loadTab to execute first.