跳至内容
菜单
此问题已终结
2 回复
786 查看

  t t-if="object.state == 'draft'"

                        Your invoice has been paid. t t-out="object.name"

                    /t

                    t t-else=""

                        Your invoice is pending payment.

                    /t

in view the output is Your invoice has been paid. Your invoice is pending payment. and didn't show the value of object.name so how to render the variable and take the if statement into consideration

形象
丢弃
编写者 最佳答案

didnt work, I need a method to render html content consideration of which model and record exist.


形象
丢弃
最佳答案

Hi,

Try to use t-field instead of t-out.


Hope it helps

形象
丢弃