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

Function assertModelSet

packages/core/src/authoring/model/model_signal.ts:110–117  ·  view source on GitHub ↗

Asserts that a model's value is set.

(value: unknown)

Source from the content-addressed store, hash-verified

108
109/** Asserts that a model's value is set. */
110function assertModelSet(value: unknown): void {
111 if (value === REQUIRED_UNSET_VALUE) {
112 throw new RuntimeError(
113 RuntimeErrorCode.REQUIRED_MODEL_NO_VALUE,
114 ngDevMode && 'Model is required but no value is available yet.',
115 );
116 }
117}

Callers 2

getterFunction · 0.85
createModelSignalFunction · 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…