showBio(id) {
this.router.navigate(['/speakers', {outlets: {'bio': [id]}}]);
}
How can I write it in [routerLink] and still can pass an id? I am following this example for reference: Example
The route syntax stays the same with [routerLink] :
<a [routerLink]="['/speakers', {outlets: {'bio': [id]}}]">Link</a>
For this to work, the id property needs to be exposed to your template.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With