Interface Route

Index

Methods

Methods

public addHandler(fn: Function)

Parameters

  • fn: Function

public constructor(path: string, name: string): Route

Parameters

  • path: string
  • name: string

Returns

Route

public match(path: string, params: any): boolean

Parameters

  • path: string
  • params: any

Returns

boolean

public removeHandler(fn: Function)

Parameters

  • fn: Function

public run(params: any)

Parameters

  • params: any

public toURL(params: any): string

Parameters

  • params: any

Returns

string