-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercompiler: extended diagnosticscross-cutting: signalscross-cutting: types
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
Let's say I omit to call a signal in the template, as we are used to with regular values.
@Component({
template: `{{ value }}`,
})
export class AppComponent {
value = signal('Hello World!')
}No compilation error to prevent this error, resulting in an undesired string rendered to the screen: function () { [native code] }.
Proposed solution
Strict type-checking of signal calls in the template would improve DX, especially for newcomers.
Alternatives considered
No type checking.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercompiler: extended diagnosticscross-cutting: signalscross-cutting: types