MCPcopy Create free account
hub / github.com/angular/components / ngAfterContentInit

Method ngAfterContentInit

src/cdk/table/table.ts:677–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

675 }
676
677 ngAfterContentInit() {
678 this._viewRepeater =
679 this.recycleRows || this._virtualScrollEnabled()
680 ? new _RecycleViewRepeaterStrategy()
681 : new _DisposeViewRepeaterStrategy();
682
683 if (this._virtualScrollEnabled()) {
684 this._setupVirtualScrolling(this._virtualScrollViewport!);
685 }
686
687 this._hasInitialized = true;
688 }
689
690 ngAfterContentChecked() {
691 // Only start re-rendering in `ngAfterContentChecked` after the first render.

Callers

nothing calls this directly

Calls 2

_virtualScrollEnabledMethod · 0.95

Tested by

no test coverage detected