MCPcopy Index your code
hub / github.com/angular/angular / getFullPath

Function getFullPath

packages/router/src/utils/config.ts:213–226  ·  view source on GitHub ↗
(parentPath: string, currentRoute: Route)

Source from the content-addressed store, hash-verified

211}
212
213function getFullPath(parentPath: string, currentRoute: Route): string {
214 if (!currentRoute) {
215 return parentPath;
216 }
217 if (!parentPath && !currentRoute.path) {
218 return '';
219 } else if (parentPath && !currentRoute.path) {
220 return `${parentPath}/`;
221 } else if (!parentPath && currentRoute.path) {
222 return currentRoute.path;
223 } else {
224 return `${parentPath}/${currentRoute.path}`;
225 }
226}
227
228/** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */
229export function getOutlet(route: Route): string {

Callers 1

validateConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…