IsActiveMatchOptions • Angular

Defines the strategy for comparing the matrix parameters of two UrlTrees.

The matrix parameter matching is dependent on the strategy for matching the segments. That is, if the paths option is set to 'subset', only the matrix parameters of the matching segments will be compared.

  • 'exact': Requires that matching segments also have exact matrix parameter matches.
  • 'subset': The matching segments in the router's active UrlTree may contain extra matrix parameters, but those that exist in the UrlTree in question must match.
  • 'ignored': When comparing UrlTrees, matrix params will be ignored.