Angular ngIf documentation<http://docs.angularjs.org/api/ng.directive%3angIf>
 says

Animations

enter - happens just after the ngIf *contents change* and a new DOM element 
is created and injected into the ngIf container

I have had problems with this and therefore made this *plunker 
<http://plnkr.co/edit/pqOn0Zz9M912sG8UtdIs?p=preview>* which shows that 
change to content does not trigger the enter animation. However, if I set 
the content to undefined and then wrap the initialization in a 1ms $timeout it 
works as I expect.

Why is it not triggering the *enter* and *leave* when I just change the 
content as the documentation says?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to