

By default, only when the ngAnimate is included, then the $animateCss service will actually perform animations.įactory that constructs Cache objects and gives access to them. The default behavior is the application of DOM operations, however, when an animation is detected (and animations are enabled), $animate will do the heavy lifting to ensure that animation runs with the triggered DOM operation. The $animate service exposes a series of DOM utility methods that provide support for animation hooks. When called, it scrolls to the element related to the specified hash or (if omitted) to the current value of $location.hash(), according to the rules specified in the HTML5 spec.
