PHP Classes

File: resources/js/components/Shop/Products.vue

Recommend this page to a friend!
  Classes of Edward Paul   Flexible PHP Coupon System   resources/js/components/Shop/Products.vue   Download  
File: resources/js/components/Shop/Products.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Flexible PHP Coupon System
E-commerce system that supports discount coupons
Author: By
Last change:
Date: 4 years ago
Size: 715 bytes
 

Contents

Class file image Download
<template> <div class="row"> <div class="col-sm-4" v-for="product in products"> <product :product="product"></product> </div> </div> </template> <script> import { mapActions, mapGetters } from 'vuex' import Product from "./Product"; export default { name: "Products", computed:{ ...mapGetters({ products: 'allProducts' }), }, components: { Product }, methods: { ...mapActions({ getAllProducts: 'getAllProducts' }) }, mounted () { this.getAllProducts() } } </script> <style> </style>