O'Reilly logo

AngularJS Web Application Development Cookbook by Matt Frisbie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating enter animations with ngIf

AngularJS provides hooks to define a custom animation when a directive fires an enter event. The following directives will generate enter events:

  • ngIf: This fires the enter event just after the ngIf contents change, and a new DOM element is created and injected into the ngIf container
  • ngInclude: This fires the enter event when new content needs to be brought into the browser
  • ngRepeat: This fires the enter event when a new item is added to the list or when an item is revealed after a filter
  • ngSwitch: This fires the enter event after the ngSwitch contents change, and the matched child element is placed inside the container
  • ngView: This fires the enter event when new content needs to be brought into the browser
  • ngMessage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required