No error showing in HTML for invalid Angular IF statement #55812
Labels
area: compiler
Issues related to `ngc`, Angular's template compiler
compiler: extended diagnostics
compiler: template type-checking
feature
Issue that requests a new feature
Milestone
馃悶 bug report
Is this a regression?
Unsure, only just noticed this being an issue whilst working through someone elses code.
Description
The bug seems to be not highlighting an Angular
if
statement as an error when it contains anelse
reference but noelse
property.Bug Type
What does this bug affect
Reproduction
Steps to reproduce the behavior:
if
statement in AngularHTML
file and do not include theelse
property when including an else reference. E.g.<ng-container *ngIf="data; newData"></ng-container>
.else
condition on the Front-End. Again no errors showing that this is a problem.Expected behavior
Should be highlighted as a syntax error in VSCode.
Logs
Log file gives us deep insight into the behavior and performance of the extension. If the issue is a performance
problem or an error occured, please provide the output of the log file below.
Set Angular Log level to verbose.
Screenshots
If applicable, add screenshots to help explain your problem.
馃實 Your Environment
Angular Version:
Extension Version:
VSCode Version:
Operating System:
Extension options:
Anything else relevant?
The text was updated successfully, but these errors were encountered: