refactor(animations): introduce @angular/animation module (#14351)
PR Close: #14351
This commit is contained in:

committed by
Miško Hevery

parent
baa654a234
commit
96073e51c3
@ -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', []); }
|
||||
|
Reference in New Issue
Block a user