You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4f4f410
Browse filesBrowse the repository at this point in the historyBrowse files
fix(compiler-cli): dom property binding check in signal extended diagnostic (#54324)
The compiler now checks if a signal is properly called on dom property bindings.
The ideal solution would be for the compiler to check if dom property bindings in general are properly typed,
but this is currently not the case, and it is a bigger task to land this change.
In the meantime, the signal diagnostic is augmented to catch cases like the following:
```
<div [id]="mySignal"></div>
```
PR Close#54324
Copy file name to clipboardExpand all lines: packages/compiler-cli/src/ngtsc/typecheck/extended/test/checks/interpolated_signal_not_invoked/interpolated_signal_not_invoked_spec.ts
+139-4Lines changed: 139 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ runInEachFileSystem(() => {
68
68
69
69
export class TestCmp {
70
70
mySignal1 = signal<number>(0);
71
-
mySignal2:Signal<number>;
71
+
mySignal2:Signal<number>;
72
72
}`,
73
73
},
74
74
]);
@@ -128,7 +128,7 @@ runInEachFileSystem(() => {
128
128
'TestCmp': `<div>{{ mySignal2 }}</div>`,
129
129
},
130
130
source: `
131
-
import {signal, Signal, computed} from '@angular/core';
0 commit comments