| 95 | |
| 96 | it('should bind to properties whose names do not correspond to their attribute names', () => { |
| 97 | @Component({ |
| 98 | template: '<label [for]="forValue"></label>', |
| 99 | |
| 100 | changeDetection: ChangeDetectionStrategy.Eager, |
| 101 | }) |
| 102 | class MyComp { |
| 103 | forValue?: string; |
| 104 | } |
| 105 | |
| 106 | const fixture = TestBed.createComponent(MyComp); |
| 107 | const labelNode = fixture.debugElement.query(By.css('label')); |