Answers for "vue conditional rendering in data"

0

vue v-if compare string

<span v-for="role in user.roles">
    <span v-if="role.name == 'Admin'">Yes</span>
    <span v-else>-</span>
</span>
Posted by: Guest on June-04-2020

Code answers related to "vue conditional rendering in data"

Browse Popular Code Answers by Language