Statement Expected error using *ngIf with then and else
<div *ngIf="findings.length != 0; then contentBlock; else noContentBlock"></div>
This statement is giving me a syntax error around the "; else" where it says "statement expected." It looks like the syntax is correct and even shows correctly when rendered by the view.
How do I suppress the error or fix it?
Please sign in to leave a comment.
Please follow https://youtrack.jetbrains.com/issue/WEB-30682 for updates.
For now I can suggest removing semicolon before "; else" - the syntax will remain valid and will work without issues - see https://youtrack.jetbrains.com/issue/WEB-30682#comment=27-2671632