ngMock.$animate

Improve this Doc View Source $animate

  1. service in module ngMock

Mock implementation of the $animate service. Exposes two additional methods for testing animations.

Methods

  • closeAndFlush();

    This method will close all pending animations (both Javascript and CSS) and it will also flush any remaining animation frames and/or callbacks.

  • flush();

    This method is used to flush the pending callbacks and animation frames to either start an animation or conclude an animation. Note that this will not actually close an actively running animation (see closeAndFlush() for that).

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.4.14/docs/api/ngMock/service/$animate

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部