feat(di): added optional self parameter to Parent, Ancestor, and Unbounded

This commit is contained in:
vsavkin
2015-05-27 16:43:22 -07:00
parent ebe1e73b1a
commit 34cfc9f474
3 changed files with 27 additions and 9 deletions

View File

@ -1082,7 +1082,7 @@ export class ElementInjector extends TreeNode<ElementInjector> {
var depth = visibility.depth;
if (!visibility.shouldIncludeSelf()) {
if (!visibility.includeSelf) {
depth -= ei._proto.distanceToParent;
if (isPresent(ei._parent)) {