如何更新 Autoform Placeholder 中的值

How to update value in Autoform Placeholder

我有一个要更新用户信息的表单。我想为更新表单提供位于占位符中的当前用户数据。此数据将使用路由控制器提供。但是它不起作用。我想知道是否有任何解决方案。

{{> afFieldInput name='age' placeholder={{age}}}}

{{> afFieldInput name='age' placeholder=age }}

应该可以。但这会默认填充 age 的值(如果已经存在)并且只有当用户删除该值时才会显示占位符文本。