I am developing a mobile application with sencha extjs. I want my application to support back button on android phone, then I figure out using sencha route can solve on this matter. I have many views to use route and some views are relevant to each other. Therefore, some view controllers need parameters. For example, to view a View, in view I have view listeners for view actions.
viewA : function(obj1, obj2){
//obj1, obj2 are required to open that view
this.redirectTo('myViewA', ture);
}
In route controller
routes: {
'myViewA' : {
action: 'onMyViewA' //method onMyViewA to view viewA
}
},
{
onMyViewA : function(){
//view viewA need parameter obj1, obj2
}
}
My question is that, how can I pass parameter obj1, obj2 to route controller? or any solutions else to solve this. Thanks.