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

Method capture

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

Source from the content-addressed store, hash-verified

897 }
898
899 private capture(str: string): void {
900 if (!this.consumeOptional(str)) {
901 throw new RuntimeError(
902 RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL,
903 (typeof ngDevMode === 'undefined' || ngDevMode) && `Expected "${str}".`,
904 );
905 }
906 }
907}
908
909export 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