I have a requirement wherein I should be able to capture the selected row [user can click anywhere on the row]. I went through the documentation https://material.angular.io/components/table/overview but I couldn't find a way to capture selected row and its contents. I tried to attach a click event on md-table tag but it didn't work.
<md-table #table [dataSource]="tableDataSource" (click)="selectRow(row)">