DefaultResolver
Generates a route resolver for a given component. In addition to regular route resolver functionality:
- It provide the current route name as an attr
- It sets a key on the component so a rerender will be triggered on route change.
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
makeKey(): * When a route change results in a changed key, a full page rerender occurs. |
|
public |
|
|
public |
|
Public Constructors
public constructor() source
Public Methods
public makeAttrs(vnode: undefined): {...undefined: Object, "routeName": *} source
Params:
Name | Type | Attribute | Description |
vnode | undefined |
public makeKey(): * source
When a route change results in a changed key, a full page rerender occurs. This method can be overriden in subclasses to prevent rerenders on some route changes.
Return:
* |