refactor(animations): introduce @angular/animation module (#14351)

PR Close: #14351
This commit is contained in:
Matias Niemelä
2017-01-26 11:16:51 -08:00
committed by Miško Hevery
parent baa654a234
commit 96073e51c3
56 changed files with 3983 additions and 18 deletions

View File

@ -356,6 +356,11 @@ class _AnimationWorkerRendererPlayer implements RenderStoreObject {
this._runOnService('onDone', []);
}
onDestroy(fn: () => void): void {
this._renderElement.animationPlayerEvents.listen(this, 'onDestroy', fn);
this._runOnService('onDestroy', []);
}
hasStarted(): boolean { return this._started; }
init(): void { this._runOnService('init', []); }