$animate.enter()

enter(element, parent, [after], [options]);

Inserts the element into the DOM either after the after element (if provided) or as the first child within the parent element and then triggers an animation. 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 inserted into the DOM

parent DOMElement

the parent element which will append the element as a child (so long as the after element is not present)

after
(optional)
DOMElement

the sibling element after which the element will be appended

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.