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

Function validateCommands

packages/router/src/router.ts:725–736  ·  view source on GitHub ↗
(commands: readonly string[])

Source from the content-addressed store, hash-verified

723}
724
725function validateCommands(commands: readonly string[]): void {
726 for (let i = 0; i < commands.length; i++) {
727 const cmd = commands[i];
728 if (cmd == null) {
729 throw new RuntimeError(
730 RuntimeErrorCode.NULLISH_COMMAND,
731 (typeof ngDevMode === 'undefined' || ngDevMode) &&
732 `The requested path contains ${cmd} segment at index ${i}`,
733 );
734 }
735 }
736}

Callers 1

navigateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected