bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

tab is duplicated when using ng-if and binded value for condition is refreshed

Open seustachi opened this issue 11 years ago • 2 comments

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

seustachi avatar Dec 15 '14 13:12 seustachi

Is this still an issue for you in the current master branch? Can you create a plunkr reproducing the problem?

rvanbaalen avatar Apr 08 '15 16:04 rvanbaalen

This does not appear to be an issue still, as can be seen here.

Closing as resolved.

wesleycho avatar Aug 18 '15 18:08 wesleycho