This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ngAnimateSwap is not compatible with ngIf #16616
Closed
Description
I'm submitting a ...
- bug report
- feature request
- other
Current behavior:
ngAnimateSwap registers a comment of the element, not the element itself, so if an element contains the ng-if
attribute, ng-animate-swap
will not work.
Expected / new behavior:
Having a conditional element also be animated if it's visible.
Minimal reproduction of the problem with instructions:
- Have an element with both
ng-animate-swap
andng-if
- The element will always be invisible, as it swaps the comments.
https://codepen.io/anon/pen/LrgBwY
AngularJS version: 1.7.2
Browser: [all]
(tested on FF 62, OSX High Seirra )