MCPcopy
hub / github.com/angular/angular / capture

Method capture

packages/router/src/url_tree.ts:814–821  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

812 }
813
814 private capture(str: string): void {
815 if (!this.consumeOptional(str)) {
816 throw new RuntimeError(
817 RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL,
818 (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected "${str}".`,
819 );
820 }
821 }
822}
823
824export function createRoot(rootCandidate: UrlSegmentGroup): UrlSegmentGroup {

Callers 5

parseChildrenMethod · 0.95
parseSegmentMethod · 0.95
parseParamMethod · 0.95
parseQueryParamMethod · 0.95
parseParensMethod · 0.95

Calls 1

consumeOptionalMethod · 0.95

Tested by

no test coverage detected