Skip to content

MdSort is missing exportAs #6911

@sudheer-rj

Description

@sudheer-rj

Hi,

How to access it (MdSort) from component if there are two md-tables in same component, or how to differentiate two mdsorts in same components.

like

<md-table #table1 [dataSource]="table1DataSource" mdSort>

And

<md-table #table2 [dataSource]="table2DataSource" mdSort>

@ViewChild(MdSort) table1Sort: MdSort;
@ViewChild(MdSort) table2Sort: MdSort;

Issue is that, if i click to sort in the header column of one grid it sorts column in both grid or tables.

Thanks & Regards,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions