HI
How to Exclude form page from stackPages? and what is the max limit of stackPages?
HI
How to Exclude form page from stackPages? and what is the max limit of stackPages?
view.router.params.stackPages=false;
view.router.navigate(url,{history:false});
view.router.params.stackPages=true;
Could you please explain more details about how to use functions?
simply like that
// turn off stackPages
view.router.params.stackPages=false;
// navigate with no history
view.router.navigate(url,{history:false});
// turn on stackPages
view.router.params.stackPages=true;
I have below router in my routes.js, could you please explain where i need to add stackPages condition?
{
path: '/group-edit/:id',
name: 'groupedit',
async: function (routeTo, routeForm, resolve, reject) {
var userinfo = app.form.getFormData('userinfo');
app.request.post(serviceurl + 'group_info', {
uid: userinfo.uid,
nid: routeTo.params.id,
flag: true
}, function (response) {
var groupedit = JSON.parse(response);
console.log(groupedit);
resolve({
componentUrl: './pages/group-edit.html'
}, {
context: {
groupedit: groupedit
}
})
})
}
},
{
path:'/group-edit/:id',
name:'groupedit',
options:{history:false},
async:function(routeTo,routeForm,resolve,reject){
app.request.post(url,{},function(response){
app.views.current.router.params.stackPages=false;
resolve(
{componentUrl:'./pages/group-edit.html'},
{context:response}
);
});
},
on:{
pageInit:function(e,page){
page.view.router.params.stackPages=true;
}
}
}
//use one of them
on:{
pageInit:function(e,page){
//e.detail.view.router.params.stackPages=true;
//page.view.router.params.stackPages=true;
app.views.current.router.params.stackPages=true;
}
}
I tried with all the suggestion but while going back my first page is showing empty.