manage all items added to your cart
- mounted :
-
- set default value
- beforeDestroy :
-
- properly detach stuffs
Match routes:
- /my-cart
- /my-cart/revision
Fires:
Members
Props
innerreadonlyproptheme String cart.vue, line 15
- Default Value:
- light
Data
innerdefault Boolean cart.vue, line 29
Computed
innercomputedisReadyForCheckout Boolean cart.vue, line 41
innercomputeditems Array.<Item> cart.vue, line 35
the actual items from the store
- See:
Watchers
staticitems(newitems, olditems) cart.vue, line 51
on items change, do some stuff
Parameters:
Name | Type | Description |
---|---|---|
newitems | Array.<Item> | |
olditems | Array.<Item> |
Methods
innerdecrementItem(item) → {Number} cart.vue, line 95
do the exact opposite of incrementItem()
Parameters:
Name | Type | Description |
---|---|---|
item | Item | the item to act on |
Returns:
Number
the new quantity
innergoToCheckOut() cart.vue, line 70
emit checkout event
Fires:
innerincrementItem(item) → {Number} cart.vue, line 83
More of this item !
Parameters:
Name | Type | Description |
---|---|---|
item | Item | the item to act on |
Returns:
Number
the new quantity