I don't know why my routing is not happened after clicking row. No error is showing. Path is changing in URL from "http://localhost:4200/vendor-list" to "http://localhost:4200/vendor-list/vendor" But the page is not changing.
vendorlist.component.html
<tr mat-header-row *matHeaderRowDef="ordersDisplayedColumns"></tr>
<tr (click)="displayData(row)" mat-row *matRowDef="let row; columns: ordersDisplayedColumns;"></tr>
</table>
vendorlist.component.ts
displayData(row)
{
console.log(row);
this.router.navigate(["/vendor-list/vendor/"]);
}
myrouting.module.ts
{path:'vendor-list',component:VendorlistComponent,
children:[
{path:'vendor',component:VendorComponent,
]},