The methods used to trigger the
leave animation events from the
$animate service are
$animate.leave. They are the same animation events triggered by the ngIf, ngInclude, ngView, ngSwitch, ngRepeat, and ngMessage directives when an element is entered or removed from DOM.
$animate.enter method adds the element sibling to the
afterElement node or appends to the
parentElement parameter and then runs the
enter animation. After the animation is finished, the returned promise is resolved.
The method signature is as follows:
$animate.enter(element, parentElement, afterElement)
enter method follows these steps:
$animate.enter(element, parentElement, afterElement)is called by the directive. ...