fix(query): update view queries that query directives in embedded views

Fixes #6747
This commit is contained in:
Tobias Bosch
2016-01-28 12:22:04 -08:00
committed by Alex Eagle
parent f4f614f3a9
commit 1f7a41c963
2 changed files with 34 additions and 2 deletions

View File

@ -463,7 +463,11 @@ export class AppElement implements DependencyProvider, ElementRef, AfterViewChec
var inj: AppElement = this;
while (isPresent(inj)) {
inj._setQueriesAsDirty();
inj = inj.parent;
if (isBlank(inj.parent) && isPresent(inj.parentView.containerAppElement)) {
inj = inj.parentView.containerAppElement;
} else {
inj = inj.parent;
}
}
}