fix(animations): ensure animation callbacks are fired for embedded views

This commit is contained in:
Matias Niemelä
2016-08-31 11:53:30 -07:00
committed by Martin Probst
parent 99c0a7fae2
commit 562c8263dc
3 changed files with 59 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class ViewBinderVisitor implements TemplateAstVisitor {
private _nodeIndex: number = 0;
private _animationOutputsMap: {[key: string]: AnimationOutput} = {};
constructor(public view: CompileView, animationOutputs: AnimationOutput[]) {
constructor(public view: CompileView, public animationOutputs: AnimationOutput[]) {
animationOutputs.forEach(
entry => { this._animationOutputsMap[entry.fullPropertyName] = entry; });
}
@ -108,7 +108,7 @@ class ViewBinderVisitor implements TemplateAstVisitor {
var providerInstance = compileElement.instances.get(providerAst.token.reference);
bindInjectableDestroyLifecycleCallbacks(providerAst, providerInstance, compileElement);
});
bindView(compileElement.embeddedView, ast.children, []);
bindView(compileElement.embeddedView, ast.children, this.animationOutputs);
return null;
}