()
| 120 | /** @internal */ |
| 121 | @Method() |
| 122 | async canTransition() { |
| 123 | const canProceed = await this.runGuards(); |
| 124 | if (canProceed !== true) { |
| 125 | if (typeof canProceed === 'object') { |
| 126 | return canProceed.redirect; |
| 127 | } else { |
| 128 | return false; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Navigate to the specified path. |