-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/tablearea: material/tableperfThis issue is related to performanceThis issue is related to performance
Description
Description
Call of dataAccessor
method is against Angular best practices and will be bad for performance in tables with large data sets.
<td mat-cell *matCellDef="let data" [style.text-align]="justify">
{{dataAccessor(data, name)}}
</td>
See line 30 inside MatTextColumn
for reference.
Reproduction
Expected Behavior
Set the data in a variable inside the component on initialization and bind that to the template instead.
Actual Behavior
It gets the data inside the template by calling the dataAccessor
method.
Environment
- Angular:
- CDK/Material:
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: cdk/tablearea: material/tableperfThis issue is related to performanceThis issue is related to performance