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

Method getSegments

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

Source from the content-addressed store, hash-verified

393 }
394
395 private getSegments(): string[] | null {
396 return readSegments(window.location, this.root, this.useHash);
397 }
398
399 private getFragment(): string | undefined {
400 // In hash mode the URL fragment trails a second `#` (e.g. `#/path#anchor`);

Callers 5

componentWillLoadMethod · 0.95
onPopStateMethod · 0.95
onRedirectChangedMethod · 0.95
onRoutesChangedMethod · 0.95
runGuardsMethod · 0.95

Calls 1

readSegmentsFunction · 0.90

Tested by

no test coverage detected