m4d_router.router library

Classes

ReactPattern
If pattern starts with / and has no hash ReactPattern automatically prefixes pattern with '/#' [...]
Route
RouteEnterEvent
RouteErrorEvent
Event on error
RouteEvent
Route enter event.
Router
Stores a set of UrlPattern to Handler associations and provides methods for calling a handler for a URL path, listening to Window history events, and creating HTML event handlers that navigate to a URL.
UrlPattern
A pattern, similar to a RegExp, that is designed to match against URL paths, easily return groups of a matched path, and produce paths from a list of arguments - this is they are "reversible". [...]

Functions

urlPattern(String pattern) UrlPattern

Typedefs

EventHandler(Event e) → void
Handler(String path) → dynamic
RouteEnterCallback(RouteEnterEvent event, [ void onError(Exception exception) ]) → void