Answers for "vue js display content on condition, else display other content"

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 js display content on condition, else display other content"

Browse Popular Code Answers by Language