Routes hash or a method returning the routes hash that maps URLs with parameters to methods on your Router.
For assigning routes as object hash, do it like this: this.routes = { "route": callback, ... };
That works only if you set it in the constructor or the initialize method.
Returns
any
public stopListening(object?: any, events?: string, callback?: Function): any
Parameters
object?: anyoptional
events?: stringoptional
callback?: Functionoptional
Returns
any
public trigger(eventName: string, args?: Array<any>): any
Parameters
eventName: string
args?: Array<any>optional
Returns
any
public unbind(eventName?: string, callback?: Function, context?: any): any