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 theenter
event just after thengIf
contents change, and a new DOM element is created and injected into thengIf
containerngInclude
: This fires theenter
event when new content needs to be brought into the browserngRepeat
: This fires theenter
event when a new item is added to the list or when an item is revealed after a filterngSwitch
: This fires theenter
event after thengSwitch
contents change, and the matched child element is placed inside the containerngView
: This fires theenter
event when new content needs to be brought into the browserngMessage ...
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.