(
componentType: Type<T>,
private readonly _rootLView: LView,
private readonly _hasInputBindings: boolean,
)
| 577 | private _tNode: TElementNode | TContainerNode | TElementContainerNode; |
| 578 | |
| 579 | constructor( |
| 580 | componentType: Type<T>, |
| 581 | private readonly _rootLView: LView, |
| 582 | private readonly _hasInputBindings: boolean, |
| 583 | ) { |
| 584 | super(); |
| 585 | this._tNode = getTNode(_rootLView[TVIEW], HEADER_OFFSET) as TElementNode; |
| 586 | this.location = createElementRef(this._tNode, _rootLView); |
| 587 | this.instance = getComponentLViewByIndex(this._tNode.index, _rootLView)[CONTEXT] as T; |
| 588 | this.hostView = this.changeDetectorRef = new ViewRef<T>( |
| 589 | _rootLView, |
| 590 | undefined /* _cdRefInjectingView */, |
| 591 | ); |
| 592 | this.componentType = componentType; |
| 593 | } |
| 594 | |
| 595 | override setInput(name: string, value: unknown): void { |
| 596 | if (this._hasInputBindings && ngDevMode) { |
nothing calls this directly
no test coverage detected