# v-shopping-cart

> A shopping cart component by Vue.Must be used with vuex.

## Install

``` bash
# install dependencies
npm install --save v-shopping-cart
```

## Preview
![Preview](/v-shopping-cart.png)

##use
```vue
<template>
  <div id="app">
    <v-shopping-cart :menuList="menulist" :payPath="payPath"></v-shopping-cart>
  </div>
</template>

<script>
import vShoppingCart from './myPlugin/vShoppingCart'; 
import menuList from './menuList'; 
export default {
  name: 'app',
  components: {
    vShoppingCart
  },
  data () {
    return {
      menulist: menuList,
      payPath: "/order/pay"
    }
  }
}
</script>

```
