Developer Preview Feature
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Creates a route handler module.
Route handler modules, which are used in client-side routing, aren’t the same as route handler functions, which are used in server-side routing.
Note
| Method Input | Type | Required/Optional | Description |
|---|---|---|---|
callback | RouteHandlerCallback function | Required | A reference to a route handler callback. Each RouteHandlerCallback takes a RouteDestination object. Make sure to save the reference to this callback. RouteHandler.update invokes the callback to return the ViewSet for a given RouteDestination. |
1constructor(callback: RouteHandlerCallback) {
2 this.callback = callback; // Important: maintain a reference to the callback
3 }1public void new(callback: RouteHandlerCallback)See Also
Developer Preview Feature