Add vue-moment 3rd party for date/time formating

This commit is contained in:
2020-12-06 17:50:56 +01:00
parent 12d10c427b
commit 5ae24298ae
4 changed files with 17 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
<hr />
<p class="price">{{ "$" + fruit.price }}</p>
{{ fruit.expires }}
{{ "expires" }} {{ fruit.expires | moment("from", "now") }}
</section>
</article>
</div>
@@ -22,6 +22,7 @@
<script>
import { mapState } from "vuex";
export default {
name: "FruitDetails",
computed: {