MCPcopy
hub / github.com/angular/angular / App

Class App

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

Source from the content-addressed store, hash-verified

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