Направление к уникальному идентификатору для каждой строки с использованием параметров URL.
vendorlist.component. html
<tr mat-header-row *matHeaderRowDef="ordersDisplayedColumns"></tr>
<tr (click)="displayData(row, i)" mat-row *matRowDef="let row; let index as i; columns: ordersDisplayedColumns;"></tr>
</table>
vendorlist.component. ts
displayData(row, id)
{
console.log(row);
this.router.navigate([`/vendor-list/vendor/${id}`]);
}
myrouting.module.ts
{path:'vendor-list',component:VendorlistComponent,
children:[
{path:'vendor/:id',component:VendorComponent,
]},