I have a component within a nested router-outlet, but would like to create a link to a route that is in the parent's router-outlet. I am not sure what code you guys would want to see for me to explain this?
I was not able to do it from the template (maybe seeing this answer someone could show me the way to do it from the template), but I was able to make it work by navigating programmatically like this:
this.router.navigate(['../../account-view/' + id], { relativeTo: this.route.parent });
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