how to pass value between two pages?
GitCod-Man opened this issue · 1 comments
GitCod-Man commented
I have a main page with list data, now i want to click one data and go to another page,how can i pass value to another page ?
function goinfor(id){
$.afui.loadContent('partials/infor.html',false,false,'up-reveal');
}
how to do it ? thanks!
Grogglex commented
You could pass it with route parameters or by attaching the data you need to $root. Additionally, and probably better, you can use an event bus. https://medium.com/@andrejsabrickis/https-medium-com-andrejsabrickis-create-simple-eventbus-to-communicate-between-vue-js-components-cdc11cd59860