Pass invisible or hidden parameters using routerLink Angular

后端 未结 7 449
清酒与你
清酒与你 2020-12-03 10:48

I have router link like below:

I want t

相关标签:
7条回答
  • 2020-12-03 11:20

    @AddWeb @SailiUnique

    Your solution works but you don't have to put the property in the [routLink]. The correct place is outside it as any property.

    Like this:

    <div class="row inline rowItem" [routerLink]="['/businessPartnerDetails']" [queryParams]="{ id: bpItem.id, bp: bpItem.companyName}" skipLocationChange=true (click)="onViewDetails(bpItem)">

    0 讨论(0)
提交回复
热议问题