File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -17812,15 +17812,17 @@ var ngIfDirective = ['$animate', function($animate) {
17812
17812
$scope.$watch($attr.ngIf, function ngIfWatchAction(value) {
17813
17813
17814
17814
if (toBoolean(value)) {
17815
+ if (!block) {
17815
17816
17816
- childScope = $scope.$new();
17817
- transclude(childScope, function (clone) {
17818
- block = {
17819
- startNode: clone[0],
17820
- endNode: clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ')
17821
- };
17822
- $animate.enter(clone, $element.parent(), $element);
17823
- });
17817
+ childScope = $scope.$new();
17818
+ transclude(childScope, function (clone) {
17819
+ block = {
17820
+ startNode: clone[0],
17821
+ endNode: clone[clone.length++] = document.createComment(' end ngIf: ' + $attr.ngIf + ' ')
17822
+ };
17823
+ $animate.enter(clone, $element.parent(), $element);
17824
+ });
17825
+ }
17824
17826
17825
17827
} else {
17826
17828
You can’t perform that action at this time.
0 commit comments