X Tutup
Skip to content

Commit c6adbf6

Browse files
committed
fix(query): don’t cross component boundaries
Closes angular#6759
1 parent 1f7a41c commit c6adbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/core/linker/element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export class AppElement implements DependencyProvider, ElementRef, AfterViewChec
463463
var inj: AppElement = this;
464464
while (isPresent(inj)) {
465465
inj._setQueriesAsDirty();
466-
if (isBlank(inj.parent) && isPresent(inj.parentView.containerAppElement)) {
466+
if (isBlank(inj.parent) && inj.parentView.proto.type === ViewType.EMBEDDED) {
467467
inj = inj.parentView.containerAppElement;
468468
} else {
469469
inj = inj.parent;

0 commit comments

Comments
 (0)
X Tutup