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

Function validateCommands

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

Source from the content-addressed store, hash-verified

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

Callers 1

navigateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected