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

Class HiddenTestCmp

packages/forms/signals/test/web/form_field.spec.ts:4990–5000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4988 }
4989
4990 @Component({
4991 template: ` <my-input [formField]="f" /> `,
4992 imports: [CustomInput, FormField],
4993 })
4994 class HiddenTestCmp {
4995 myInput = viewChild.required<CustomInput>(CustomInput);
4996 data = signal('');
4997 f = form(this.data, (p) => {
4998 hidden(p, {when: ({value}) => value() === ''});
4999 });
5000 }
5001
5002 const comp = act(() => TestBed.createComponent(HiddenTestCmp)).componentInstance;
5003 expect(comp.myInput().hidden()).toBe(true);

Callers

nothing calls this directly

Calls 6

ComponentInterface · 0.90
signalFunction · 0.90
formFunction · 0.85
hiddenFunction · 0.85
valueFunction · 0.85
requiredMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…