feat(core): add begin and end renderer methods to track change detection

This commit is contained in:
Matias Niemelä
2017-05-03 13:17:46 -07:00
parent 8931e71c5c
commit 7f9c589ba3
9 changed files with 61 additions and 1 deletions

View File

@ -25,6 +25,17 @@ export class AnimationRendererFactory implements RendererFactory2 {
trigger => this._engine.registerTrigger(trigger, namespaceify(namespaceId, trigger.name)));
return new AnimationRenderer(delegate, this._engine, this._zone, namespaceId);
}
begin() {
if (this.delegate.begin) {
this.delegate.begin();
}
}
end() {
if (this.delegate.end) {
this.delegate.end();
}
}
}
export class AnimationRenderer implements Renderer2 {