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

Function modelRequiredFunction

packages/core/src/authoring/model/model.ts:23–27  ·  view source on GitHub ↗
(opts?: ModelOptions)

Source from the content-addressed store, hash-verified

21}
22
23export function modelRequiredFunction<T>(opts?: ModelOptions): ModelSignal<T> {
24 ngDevMode && assertInInjectionContext(model);
25
26 return createModelSignal(REQUIRED_UNSET_VALUE as T, opts);
27}
28
29/**
30 * `model` declares a writeable signal that is exposed as an input/output pair on the containing

Callers

nothing calls this directly

Calls 2

assertInInjectionContextFunction · 0.90
createModelSignalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…