Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

route passing object in params data is lost where i am received params object when refresh the page #1300

Open
jagasan opened this issue Mar 23, 2017 · 0 comments

Comments

@jagasan
Copy link

jagasan commented Mar 23, 2017

product page assign params object
<div class="col-md-3 col-xs-3 col-sm-3" v-for="value in values"> <router-link tag="button" class="btn btn-default" :to = "{ name: 'subproduct', params: {product: value}}" > <img v-bind:src="value.image"> </router-link> </div>

in received page code is
'


Product Description


{{product.description}}


{{product.des}}.


export default{
data(){
return {
sizes:[],
colors:[],
options:this.$route.params.product.options,
product:this.$route.params.product
}
}'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant