intel / appframework

The definitive HTML5 mobile javascript framework
http://app-framework-software.intel.com/
MIT License
2.43k stars 881 forks source link

how to pass value between two pages? #928

Open GitCod-Man opened 8 years ago

GitCod-Man commented 8 years ago

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 7 years ago

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