(
componentType: Type<T>,
private readonly _rootLView: LView,
private readonly _hasInputBindings: boolean,
)
| 603 | private _tNode: TElementNode | TContainerNode | TElementContainerNode; |
| 604 | |
| 605 | constructor( |
| 606 | componentType: Type<T>, |
| 607 | private readonly _rootLView: LView, |
| 608 | private readonly _hasInputBindings: boolean, |
| 609 | ) { |
| 610 | super(); |
| 611 | this._tNode = getTNode(_rootLView[TVIEW], HEADER_OFFSET) as TElementNode; |
| 612 | this.location = createElementRef(this._tNode, _rootLView); |
| 613 | this.instance = getComponentLViewByIndex(this._tNode.index, _rootLView)[CONTEXT] as T; |
| 614 | this.hostView = this.changeDetectorRef = new ViewRef<T>( |
| 615 | _rootLView, |
| 616 | undefined /* _cdRefInjectingView */, |
| 617 | ); |
| 618 | this.componentType = componentType; |
| 619 | } |
| 620 | |
| 621 | override setInput(name: string, value: unknown): void { |
| 622 | if (this._hasInputBindings && ngDevMode) { |
nothing calls this directly
no test coverage detected