MCPcopy
hub / github.com/angular/angular / registerWebMcpForm

Function registerWebMcpForm

packages/forms/signals/src/webmcp/registration.ts:24–34  ·  view source on GitHub ↗
(formTree, options)

Source from the content-addressed store, hash-verified

22import {REGISTER_WEBMCP_FORM, RegisterWebMcpForm} from './tokens';
23
24const registerWebMcpForm: RegisterWebMcpForm = async (formTree, options) => {
25 const injector = inject(Injector);
26
27 // we want to defer the registration until the context is fully initialized,
28 // This is especially useful if the form model is a derivation of a required input
29 effect(() => {
30 untracked(() => {
31 initWebMcpForm(formTree, options, injector);
32 });
33 });
34};
35
36function initWebMcpForm(
37 formTree: FieldTree<unknown>,

Callers 1

formFunction · 0.85

Calls 4

injectFunction · 0.90
effectFunction · 0.90
untrackedFunction · 0.90
initWebMcpFormFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…