<user-avatar mode="plain" name="[[item.from]]"></user-avatar>
item.from is Array. I want to select first element of item.name array
<user-avatar mode="plain" name="[[item.from[0].name]]"></user-avatar>
instead of using filter function. How can I do that? Thanks
You can directly add the index to the path (docs).
<user-avatar mode="plain" name="[[item.from.0.name]]"></user-avatar>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments