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

Class MyComp

packages/core/test/acceptance/property_binding_spec.ts:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106 it('should bind to properties whose names do not correspond to their attribute names', async () => {
107 @Component({
108 template: '<label [for]="forValue()"></label>',
109 })
110 class MyComp {
111 forValue = signal('some-input');
112 }
113
114 const fixture = TestBed.createComponent(MyComp);
115 const labelNode = fixture.debugElement.query(By.css('label'));

Callers

nothing calls this directly

Calls 6

ComponentInterface · 0.90
signalFunction · 0.90
InputInterface · 0.90
triggerFunction · 0.90
stateFunction · 0.90
styleFunction · 0.90

Tested by

no test coverage detected