Answers for "conditional in vuejs"

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
-2

vue if

<h1 v-if="variable">Vue is awesome!</h1>
Posted by: Guest on December-02-2020

Code answers related to "conditional in vuejs"

Browse Popular Code Answers by Language