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

Class TestCmp

packages/forms/signals/test/web/number_input.spec.ts:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 describe('parsing logic', () => {
29 it('should not change the model when user enters un-parsable input', () => {
30 @Component({
31 imports: [FormField],
32 template: `<input type="number" [formField]="f" />`,
33 })
34 class TestCmp {
35 readonly data = signal<number>(42);
36 readonly f = form(this.data);
37 }
38
39 const fixture = act(() => TestBed.createComponent(TestCmp));
40 const input = fixture.nativeElement.querySelector('input') as HTMLInputElement;

Callers

nothing calls this directly

Calls 4

ComponentInterface · 0.90
signalFunction · 0.90
viewChildrenFunction · 0.90
formFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…