ngxtension / ngxtension-platform

Utilities for Angular
https://ngxtension.netlify.app/
MIT License
531 stars 77 forks source link

Template migration fails when using optional chaining operator in templates #397

Open Tallyb opened 1 month ago

Tallyb commented 1 month ago

x is an input transformed to signal.

The template has a "something = x?.y"

expected the template to change to "x()?.y". but it does not migrate.

eneajaho commented 1 month ago

Hello @Tallyb Thanks for opening this issue. Will check it out later this week.

ilirbeqirii commented 1 month ago

@Tallyb I had a similar issue with optional chaining in the template, but for me, the problem was that the template was not properly formatted, and the interpolation expression had bad formatting, i.e. having space before and after, like the following:

<span>{{ project?.title ? project.title : "" }}</span>

If possible, can you please provide more info (more piece of code) about the problem you had?