As you can see in the source code here, the data-ng-animate
used to track the state of the animation:
var PRE_DIGEST_STATE = 1; var RUNNING_STATE = 2;
Thus, basically it just stores the state of its own animation on the element itself. In your case ( 2
), that it works. If you follow NG_ANIMATE_ATTR_NAME
through this file, you can follow it after adding, updating, and finally removing from this element.
source share