MCPcopy Create free account
hub / github.com/angular/angular / capture

Method capture

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

Source from the content-addressed store, hash-verified

816 }
817
818 private capture(str: string): void {
819 if (!this.consumeOptional(str)) {
820 throw new RuntimeError(
821 RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL,
822 (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected "${str}".`,
823 );
824 }
825 }
826}
827
828export 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