(
componentType: Type<T>,
private readonly _rootLView: LView,
private readonly _hasInputBindings: boolean,
)
| 559 | private _tNode: TElementNode | TContainerNode | TElementContainerNode; |
| 560 | |
| 561 | constructor( |
| 562 | componentType: Type<T>, |
| 563 | private readonly _rootLView: LView, |
| 564 | private readonly _hasInputBindings: boolean, |
| 565 | ) { |
| 566 | super(); |
| 567 | this._tNode = getTNode(_rootLView[TVIEW], HEADER_OFFSET) as TElementNode; |
| 568 | this.location = createElementRef(this._tNode, _rootLView); |
| 569 | this.instance = getComponentLViewByIndex(this._tNode.index, _rootLView)[CONTEXT] as T; |
| 570 | this.hostView = this.changeDetectorRef = new ViewRef<T>( |
| 571 | _rootLView, |
| 572 | undefined /* _cdRefInjectingView */, |
| 573 | ); |
| 574 | this.componentType = componentType; |
| 575 | } |
| 576 | |
| 577 | override setInput(name: string, value: unknown): void { |
| 578 | if (this._hasInputBindings && ngDevMode) { |
nothing calls this directly
no test coverage detected