Class Route

Index

Constructor methods

Methods

Constructor methods

constructor(pattern: string, defaults?: any, constraints?: any): Route

Parameters

  • pattern: string
  • defaults?: any optional
  • constraints?: any optional

Returns

Route

Methods

public format(routeValues: any): string

Parameters

  • routeValues: any

Returns

string

public formatSegment(value: any): string

Parameters

  • value: any

Returns

string

public parse(url: string): any

Parameters

  • url: string

Returns

any

public parseSegment(): any

Returns

any