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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.