Search code examples
angularroutesangular-router

Can I use Angular2 Router.navigate to navigate to a url with ID midway through route


I've got a route working with

this.router.navigate(["/approvals", id]);

which navigates to /approvals/[id]

I'm wondering how I can route to /approvals/[id]/users

Does anyone know?


Solution

  • this.router.navigate(["/approvals", id, "users"])