Created
December 6, 2021 23:24
-
-
Save ShariqT/4c01452353e2812ff404a81cac0eb713 to your computer and use it in GitHub Desktop.
list-postcards2.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<h3 v-if="postcards.length > 0">Postcards</h3> | |
<h3 v-else>You don't have any active postcards.</h3> | |
<ul> | |
<span v-if="postcard.from != null"> | |
From {{ postcard.from.name }} to {{ postcard.to.name }}. | |
</span> | |
<span v-else> | |
From *Address Missing* to {{ postcard.to.name }}. | |
</span> | |
</ul> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment