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 theleave
event just before thengIf
contents are removed from the DOMngInclude
: This fires theleave
event when the existing included content needs to be animated awayngRepeat
: This fires theleave
event when an item is removed from the list or when an item is filtered outngSwitch
: This fires theleave
event just after thengSwitch
contents change and just before the former contents are removed from the DOMngView
: This fires theleave
event when the existingngView
content needs to be animated awayngMessage
: This fires theleave ...
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.