MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / canTransition

Method canTransition

core/src/components/router/router.tsx:122–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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.

Callers 1

queueTrnsMethod · 0.80

Calls 1

runGuardsMethod · 0.95

Tested by

no test coverage detected