(e: NoMatch)
| 86 | } |
| 87 | |
| 88 | private noMatchError(e: NoMatch): RuntimeError<RuntimeErrorCode.NO_MATCH> { |
| 89 | return new RuntimeError( |
| 90 | RuntimeErrorCode.NO_MATCH, |
| 91 | typeof ngDevMode === 'undefined' || ngDevMode |
| 92 | ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'` |
| 93 | : `'${e.segmentGroup}'`, |
| 94 | ); |
| 95 | } |
| 96 | |
| 97 | async recognize(): Promise<{state: RouterStateSnapshot; tree: UrlTree}> { |
| 98 | const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup; |