The specification for registering a route with the router.

interface IRegisterOptions {
    command: string;
    pattern: RegExp;
    rank?: number;
}

Properties

Properties

command: string

The command string that will be invoked upon matching.

pattern: RegExp

The regular expression that will be matched against URLs.

rank?: number

The rank order of the registered rule. A lower rank denotes a higher priority. The default rank is 100.