MCPcopy Index your code
hub / github.com/angular/angular / validateCommands

Function validateCommands

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

Source from the content-addressed store, hash-verified

711}
712
713function validateCommands(commands: readonly string[]): void {
714 for (let i = 0; i < commands.length; i++) {
715 const cmd = commands[i];
716 if (cmd == null) {
717 throw new RuntimeError(
718 RuntimeErrorCode.NULLISH_COMMAND,
719 (typeof ngDevMode === 'undefined' || ngDevMode) &&
720 `The requested path contains ${cmd} segment at index ${i}`,
721 );
722 }
723 }
724}

Callers 1

navigateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…