$animate.leave()

leave(element, [options]);

Triggers an animation and then removes the element from the DOM. When the function is called a promise is returned that will be resolved during the next digest once the animation has completed.

Parameters

Param Type Details
element DOMElement

the element which will be removed from the DOM

options
(optional)
object

an optional collection of options/styles that will be applied to the element

Returns

Promise

the animation callback promise

doc_AngularJS
2016-03-29 16:10:05
Comments
Leave a Comment

Please login to continue.