Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

how to pass value between two pages? #928

Open
GitCod-Man opened this issue Aug 29, 2016 · 1 comment
Open

how to pass value between two pages? #928

GitCod-Man opened this issue Aug 29, 2016 · 1 comment

Comments

@GitCod-Man
Copy link

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
Copy link

Grogglex commented Jul 5, 2017

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

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

2 participants