Skip to content

Commit caff051

Browse files
Update src/cdk/table/table.md
Co-authored-by: Jeremy Elbourn <[email protected]>
1 parent 5062efb commit caff051

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cdk/table/table.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,7 @@ table how to uniquely identify rows to track how the data changes with each upda
154154
```
155155

156156
##### `recycleRows`
157-
When the rendered rows change, the table discards the old rows and creates new ones from
158-
scratch. Tables that do not animate rows or use multiple row templates can improve performance by
159-
enabling row recycling, which caches row templates when they're no longer needed, and reuses them
160-
when creating new rows.
157+
By default, `CdkTable` creates and destroys an internal Angular view for each row. This allows rows to participate in animations and to toggle between different row templates with `cdkRowDefWhen`. If you don't need these features, you can instruct the table to cache and recycle rows by specifying `recycleRows`.
161158

162159
```html
163160
<table cdk-table [dataSource]="dataSource" recycleRows>

0 commit comments

Comments
 (0)