fix(query): don’t cross component boundaries

Closes #6759
This commit is contained in:
Tobias Bosch 2016-01-28 15:33:50 -08:00
parent 1f7a41c963
commit c6adbf602c
1 changed files with 1 additions and 1 deletions

View File

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