Class Navigation

Provides components a way to trigger router navigation.

Methods

  • Prefetch a content of a route matched by a location and content of its ancestors.

    Parameters

    • to: To

      A location or route.

    Returns boolean

    true if the route was prefetched, or false if there's no route in the router that matches the provided location.

  • Triggers RouterProps.onPush with the requested location.

    Parameters

    • to: To

      A location or route.

    Returns void

  • Triggers RouterProps.onReplace with the requested location.

    Parameters

    • to: To

      A location or route.

    Returns void