-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Literal Array trailing comma in expressions causes error #20773
Copy link
Copy link
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercompiler: parsercore: binding & interpolationIssue related to property/attribute binding or text interpolationIssue related to property/attribute binding or text interpolationfreq1: lowstate: confirmedstate: has PRtype: bug/fixworkaround1: obvious
Milestone
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsarea: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercompiler: parsercore: binding & interpolationIssue related to property/attribute binding or text interpolationIssue related to property/attribute binding or text interpolationfreq1: lowstate: confirmedstate: has PRtype: bug/fixworkaround1: obvious
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm submitting a...
Current behavior
The following works:
the following gives error:
the difference is the trailing comma in the array of the
*ngIfcondition.Expected behavior
It should work still it's still valid javascript
Environment