From 9abfe704ed1c853f809467fdcd4de937a1a0c78a Mon Sep 17 00:00:00 2001 From: Benedikt Rossgardt Date: Wed, 17 Oct 2018 22:56:11 +0200 Subject: [PATCH] docs(table component): Improve instructions on sorting Fixes #13197 --- src/lib/table/table.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/table/table.md b/src/lib/table/table.md index bc6dc806c027..7945dd4fe140 100644 --- a/src/lib/table/table.md +++ b/src/lib/table/table.md @@ -138,7 +138,7 @@ and its interface is not tied to any one specific implementation. #### Sorting To add sorting behavior to the table, add the `matSort` directive to the table and add -`mat-sort-header` to each column header cell that should trigger sorting. +`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)). ```html