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

Function ngAfterViewInit

src/cdk-experimental/column-resize/resizable.ts:116–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 ngAfterViewInit() {
117 this._listenForRowHoverEvents();
118 this._listenForResizeEvents();
119 this._appendInlineHandle();
120
121 this.styleScheduler.scheduleEnd(() => {
122 if (this._isDestroyed) return;
123 this._viewInitialized = true;
124 this._applyMinWidthPx();
125 this._applyMaxWidthPx();
126 this.columnSizeStore
127 ?.getSize(this.columnResize.getTableId(), this.columnDef.name)
128 ?.pipe(take(1), takeUntil(this.destroyed))
129 .subscribe(size => {
130 if (size == null) {
131 return;
132 }
133 this._applySize(size);
134 });
135 });
136 }
137
138 ngOnDestroy(): void {
139 this._isDestroyed = true;

Callers

nothing calls this directly

Calls 2

scheduleEndMethod · 0.80
getSizeMethod · 0.45

Tested by

no test coverage detected