Creating leave and concurrent animations with ngView

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

  • ngIf: This fires the leave event just before the ngIf contents are removed from the DOM
  • ngInclude: This fires the leave event when the existing included content needs to be animated away
  • ngRepeat: This fires the leave event when an item is removed from the list or when an item is filtered out
  • ngSwitch: This fires the leave event just after the ngSwitch contents change and just before the former contents are removed from the DOM
  • ngView: This fires the leave event when the existing ngView content needs to be animated away
  • ngMessage: This fires the leave ...

Get AngularJS Web Application Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.