Skip to content

Commit

Permalink
fix(query): don’t cross component boundaries
Browse files Browse the repository at this point in the history
Closes #6759
  • Loading branch information
tbosch committed Jan 28, 2016
1 parent 1f7a41c commit c6adbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/angular2/src/core/linker/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6adbf6

Please sign in to comment.