Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/angular/angular
/ pathFromRoot
Method
pathFromRoot
packages/router/src/utils/tree.ts:59–61 ·
view source on GitHub ↗
* @internal
(t: T)
Source
from the content-addressed store, hash-verified
57
* @internal
58
*/
59
pathFromRoot(t: T): T[] {
60
return
findPath(t, this._root).map((s) => s.value);
61
}
62
}
63
64
// DFS for the node matching the value
Callers
2
parent
Method · 0.95
tree.spec.ts
File · 0.45
Calls
2
findPath
Function · 0.85
map
Method · 0.80
Tested by
no test coverage detected