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

Class App

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

Source from the content-addressed store, hash-verified

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