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

Method _renderCellTemplateForItem

src/cdk/table/table.ts:1394–1402  ·  view source on GitHub ↗
(rowDef: BaseRowDef, context: RowContext<T>)

Source from the content-addressed store, hash-verified

1392 }
1393
1394 private _renderCellTemplateForItem(rowDef: BaseRowDef, context: RowContext<T>) {
1395 for (let cellTemplate of this._getCellTemplates(rowDef)) {
1396 if (CdkCellOutlet.mostRecentCellOutlet) {
1397 CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate, context);
1398 }
1399 }
1400
1401 this._changeDetectorRef.markForCheck();
1402 }
1403
1404 /**
1405 * Updates the index-related context for each row to reflect any changes in the index of the rows,

Callers 2

renderRowsMethod · 0.95
_renderRowMethod · 0.95

Calls 2

_getCellTemplatesMethod · 0.95
markForCheckMethod · 0.80

Tested by

no test coverage detected