Angular2 动画 onDone 回调
Angular2 Animation onDone callback
有人知道如何在 angular2 中捕捉 onDone
新动画系统的回调吗?有一个动画 - 我想做一些事情 onDone
...我在 angular2 的源代码中看到这个方法在 AnimationPlayer
界面,但没有任何内容暴露给用户...
谨致问候!非常感谢您的回答!
你试过了吗
import {AnimationPlayer} from '@angular/core';
constructor(animationPlayer:AnimationPlayer) {
animationPlayer.onDone(() => {
console.log('animation done');
});
}
随着即将发布的 RC6 版本,这将通过 (@animation.done)
得到支持:https://github.com/angular/angular/commit/45e8e73670b96387fc109921fad299742d3f7cbf
有人知道如何在 angular2 中捕捉 onDone
新动画系统的回调吗?有一个动画 - 我想做一些事情 onDone
...我在 angular2 的源代码中看到这个方法在 AnimationPlayer
界面,但没有任何内容暴露给用户...
谨致问候!非常感谢您的回答!
你试过了吗
import {AnimationPlayer} from '@angular/core';
constructor(animationPlayer:AnimationPlayer) {
animationPlayer.onDone(() => {
console.log('animation done');
});
}
随着即将发布的 RC6 版本,这将通过 (@animation.done)
得到支持:https://github.com/angular/angular/commit/45e8e73670b96387fc109921fad299742d3f7cbf