bootstrap
bootstrap copied to clipboard
tab is duplicated when using ng-if and binded value for condition is refreshed
I have a tab with ng-if condition
<tab id="..." heading="..." ng-if='orphanInstances' >
And a function in the controller
$scope.refresh = function () {
...
$scope.orphanInstances = data;
...
}
If I call refresh() twice, I get the tab twice.
If I replace ng-if='orphanInstances' by ng-hide='!orphanInstances' I have only one tab, as expected.
AngularJS v1.2.0
Is this still an issue for you in the current master branch? Can you create a plunkr reproducing the problem?