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 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 ...

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