Template migration fails when using optional chaining operator in templates
Tallyb opened this issue · 2 comments
Tallyb commented
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.
ilirbeqirii commented
@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?