Improve on extended diagnostics for signal invocation #55883
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
cross-cutting: signals
state: has PR
Milestone
Which @angular/* package(s) are relevant/related to the feature request?
No response
Description
#49657 ensures that signals are called in situations like:
However, there are other cases where it's easy to make a mistake, especially when migrating from old
@Input
s.The following cases produce no warnings:
While it's possible to write code where statements above are valid, I would argue that it's likely a mistake and that compiler should warn about those cases.
If we don't want to add this functionality to Angular, I can create a ticket in angular-eslint.
Proposed solution
Extended diagnostics should warn when signals are not called in additional scenarios.
Alternatives considered
Creating this ticket in angular-eslint repo :)
The text was updated successfully, but these errors were encountered: