fix(core): ensure that component views that have no bindings recurse into nested components / view containers.

This commit is contained in:
Tobias Bosch
2016-11-04 08:51:16 -07:00
committed by vikerman
parent f2bbef3e33
commit 051d74802a
2 changed files with 40 additions and 2 deletions

View File

@ -557,7 +557,8 @@ function generateDetectChangesMethod(view: CompileView): o.Statement[] {
view.updateContentQueriesMethod.isEmpty() &&
view.afterContentLifecycleCallbacksMethod.isEmpty() &&
view.detectChangesRenderPropertiesMethod.isEmpty() &&
view.updateViewQueriesMethod.isEmpty() && view.afterViewLifecycleCallbacksMethod.isEmpty()) {
view.updateViewQueriesMethod.isEmpty() && view.afterViewLifecycleCallbacksMethod.isEmpty() &&
view.viewContainers.length === 0 && view.viewChildren.length === 0) {
return stmts;
}
stmts.push(...view.animationBindingsMethod.finish());