Skip to content

Commit e48a6a9

Browse files
benedikt-rothjosephperrott
authored andcommitted
docs(table component): Improve instructions on sorting (#13658)
1 parent f456e85 commit e48a6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/table/table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ and its interface is not tied to any one specific implementation.
138138
#### Sorting
139139

140140
To add sorting behavior to the table, add the `matSort` directive to the table and add
141-
`mat-sort-header` to each column header cell that should trigger sorting.
141+
`mat-sort-header` to each column header cell that should trigger sorting. Note that you have to import `MatSortModule` in order to initialize the `matSort` directive (see [API docs](https://material.angular.io/components/sort/api)).
142142

143143
```html
144144
<!-- Name Column -->

0 commit comments

Comments
 (0)