(e: NoMatch)
| 94 | } |
| 95 | |
| 96 | private noMatchError(e: NoMatch): RuntimeError<RuntimeErrorCode.NO_MATCH> { |
| 97 | return new RuntimeError( |
| 98 | RuntimeErrorCode.NO_MATCH, |
| 99 | typeof ngDevMode === 'undefined' || ngDevMode |
| 100 | ? `Cannot match any routes. URL Segment: '${e.segmentGroup}'` |
| 101 | : `'${e.segmentGroup}'`, |
| 102 | ); |
| 103 | } |
| 104 | |
| 105 | async recognize(): Promise<{state: RouterStateSnapshot; tree: UrlTree}> { |
| 106 | const rootSegmentGroup = split(this.urlTree.root, [], [], this.config).segmentGroup; |