Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): Expose the default matcher for Routes used by the Router #46913

Closed
wants to merge 1 commit into from

Commits on Jul 20, 2022

  1. feat(router): Expose the default matcher for Routes used by the `Ro…

    …uter`
    
    This commit adds the `defaultUrlMatcher` from the Router to the public
    API. `UrlMatcher` and `UrlMatchResult` are already in the public api so
    the signature of the function as well as the return value are already
    exposed. Any change to those or the implementation of `defaultUrlMatcher`
    would already be breaking so there's no additional risk in exposing the
    default matcher.
    
    This function can be useful for developers who want to create a custom
    matcher which builds on the default matcher of the Router. Currently,
    the only way to do this would be to copy-paste the implementation.
    
    fixes angular#35928
    atscott committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    3bd11b6 View commit details
    Browse the repository at this point in the history