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

Class App

packages/forms/signals/test/web/webmcp.spec.ts:320–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319 it('should not throw an error when reading the model', async () => {
320 @Component({
321 template: ``,
322 })
323 class App {
324 id = input.required<string>();
325 model = linkedSignal(() => ({id: this.id()}));
326
327 form = form(this.model, () => {}, {
328 experimentalWebMcpTool: {description: 'foo', name: 'foo'},
329 });
330 }
331
332 await TestBed.inject(ApplicationRef).whenStable();
333 expect(() => TestBed.createComponent(App)).not.toThrow();

Callers

nothing calls this directly

Calls 4

ComponentInterface · 0.90
linkedSignalFunction · 0.90
formFunction · 0.90
requiredMethod · 0.45

Tested by

no test coverage detected