-
Notifications
You must be signed in to change notification settings - Fork 26.2k
fix(ivy): error for empty bindings on ng-template #30829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ivy): error for empty bindings on ng-template #30829
Conversation
Based on @JoostK's comment I was expecting that the fix would be in the visit method of EmptyExpr to not return undefined(?) |
@Airblader Changing Going forward, it seems like a good idea to either have type-safety regarding the potential From a bugfix perspective, this fix looks adequate to me. |
bf08bfa
to
8cd8855
Compare
Thank you for the feedback @JoostK. Setting back the merge ready label since I've updated it to address the comment. |
Fixes Ivy throwing an error if it runs into an empty property binding on an `ng-template` (e.g. `<ng-template [something]=""></ng-template>`) by not generating an update instruction for it. Fixes angular#30801. This PR resoves FW-1356.
8cd8855
to
a4f4269
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes Ivy throwing an error if it runs into an empty property binding on an
ng-template
(e.g.<ng-template [something]=""></ng-template>
) by not generating an update instruction for it.Fixes #30801.
This PR resoves FW-1356.