-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngAnimate - strange behavior when using external templates #16128
Comments
Possibly related #14074 ? |
Change your ng-repeat location (into division by example). List of items:
<div ng-repeat="item in $ctrl.games">
<list-entry game="{{item}}" class="repeat-animation">
</list-entry>
</div> |
@alandrieu-gimel - also had to apply the 'repeat-animation' class for that div in order to get the animation working as well.
Even though it seems to be working well with this workaround, I still wonder as why it doesn't work in my example above. |
It doesn't work because your ng-repeat is not at the right place. You must repeat entry element like this :
<!-- My list-entry-component -->
<div ng-repeat="entry in list-entry">
<!-- My entry-component -->
<entry/>
</div> |
Despite the fact that it's not working with the animation in the plunkr, It actually is okay to use |
@frederikprijck |
@frederikprijck, is right. This is a duplicate of #14074. See #14074 (comment) for some details/workaround. Closing this, since the other issue hasmore context/discussion. |
I'm submitting a ...
Current behavior:
The animation does not start properly when using external template for my
list-entry
component. It only works while the template is defined as a string.Expected / new behavior:
The animation should start whether the template is defined as string or it's an external file.
Minimal reproduction of the problem with instructions:
(using external template) -> http://plnkr.co/edit/wyulABVJp6m8OWrbMIi3
(template defined as string) -> http://plnkr.co/edit/BP6OsgYA6SkVduoTBERk?p=preview
Angular version:
both angularjs and angular-animate are 1.6.2
Browser:
It's happening in all browsers.
The text was updated successfully, but these errors were encountered: