I am calling an async function in my html. But it's returning a promise. How can I display the value from the aysnc function?
<div>
{{ getUser(userId) }}
</div>
async getUser(userId) {
try {
const res = await this.getUser(userId);
const userName = res.data.name;
return userName
} catch (error) {}
},