Interface NavToRule

Matches any navigation where the new URL matches the route in to .

interface NavToRule {
    class?: string;
    to: string;
    type: ExtendedNavigationType;
}

Hierarchy

  • NavRule
    • NavToRule

Properties

Properties

class?: string

If provided, the class (with a vt- prefix) would be applied for the duration of the view transition if the navigation was matched.

to: string

A navigation type to match. Supports either standard NavigationType values, with a few additions:

  • "back" matches a "traverse" navigation of -1.
  • "forward" matches a "traverse" navigation of 1.
  • "auto" matches any navigation apart from "reload".

Generated using TypeDoc