Params

Let's soup it up a little by adding matrix or route-specific parameters, so the result URL looks like this: /inbox;a=v1/33;b1=v1;b2=v2:

[
  {path: 'inbox', params: {a: 'v1'}},
  {path: '33', params: {b1: 'v1', b2: 'v2'}}
]

Matrix parameters are scoped to a particular URL segment. Because of this, there is no risk of name collisions.

Get Angular Router now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.