Methods
canActivate(to, from) → {boolean|string|Promise.<(boolean|string)>}
Determines whether the route can be activated. Can return a boolean (true to allow, false to abort), a string (to redirect), or a Promise resolving to either.
Parameters:
| Name | Type | Description |
|---|---|---|
to |
Object | The target route object (contains hash, page, params). |
from |
Object | The current route object (contains hash, page, params). |
- Source:
Returns:
- Type
- boolean | string | Promise.<(boolean|string)>