Router

Router

new Router(routes, typeopt, errorRoute, initialPath)

Source:
Parameters:
Name Type Attributes Default Description
routes Array.<Route>
type RouterType <optional>
Router.TYPE.VIRTUAL
errorRoute Route
initialPath string

Members

TYPE

Source:
Properties:
Name Type Description
RouterType RouterType
Properties
Name Type Description
VIRTUAL string
PATHNAME string
HASH string

(readonly) routes :Array.<Route>

Source:
Type:

(readonly) type :RouterType

Source:
Type:
  • RouterType

(readonly) errorRoute :Route

Source:
Type:

(readonly) initialPath :string

Source:
Type:
  • string

(readonly) view :View

Source:
Type:

(readonly) path :type

Source:
Type:
  • type

(readonly) defaultLayout :Model

Source:
Type:
  • Model

(readonly) basePath :string

Source:
Type:
  • string

Methods

match(path) → {Route}

Source:
Parameters:
Name Type Description
path string
Returns:
Type
Route