RegExpRule | @uirouter/core
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

$id

$id: number

The rule's ID.

IDs are auto-assigned when the rule is registered, in increasing order.

handler

This function is called if the rule matched, and was selected as the "best match". This function handles the rule match event.

See UrlRuleHandlerFn for details

match

This function should match the url and return the match details

See UrlRuleMatchFn for details

priority

priority: number

The rule's priority (defaults to 0).

This can be used to explicitly modify the rule's priority. Higher numbers are higher priority.

regexp

regexp: RegExp

type

type: "REGEXP"

Methods

matchPriority

  • matchPriority(match: any): number
  • The priority of a given match.

    Sometimes more than one UrlRule might have matched. This method is used to choose the best match.

    If multiple rules matched, each rule's matchPriority is called with the value from match. The rule with the highest matchPriority has its handler called.

    Parameters

    • match: any

    Returns number

Generated using TypeDoc