(parentPath: string, currentRoute: Route)
| 211 | } |
| 212 | |
| 213 | function 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. */ |
| 229 | export function getOutlet(route: Route): string { |
no outgoing calls
no test coverage detected
searching dependent graphs…