MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / readRoutes

Function readRoutes

core/src/components/router/utils/parser.ts:36–38  ·  view source on GitHub ↗
(root: Element)

Source from the content-addressed store, hash-verified

34 * The routes are returned as a list of chains - the flattened tree.
35 */
36export const readRoutes = (root: Element): RouteChain[] => {
37 return flattenRouterTree(readRouteNodes(root));
38};
39
40/**
41 * Reads the route nodes as a tree modeled after the DOM tree of <ion-route> elements.

Callers 5

printDebugMethod · 0.90
navChangedMethod · 0.90
writeNavStateRootMethod · 0.90
runGuardsMethod · 0.90
router.spec.tsxFile · 0.90

Calls 2

flattenRouterTreeFunction · 0.85
readRouteNodesFunction · 0.85

Tested by

no test coverage detected