Search code examples
cordovaphonegaphtml-framework-7

Page Reload on button click in Framework 7 v2


I am unable to reload a page on a button click. Actually, I have a page where a list of users is displayed. when I click on the delete button of a particular user a user is deleted and the list gets updated. I want to reload the same page as soon as we press delete button, to get the updated list of users.

I am using framework 7 v2 in my project.

Below mentioned is the function on click of the delete button, that is not working.

function delete_user(id)
{
     mainView.router.load({                   
                url: "/user_list/",
                ignoreChache: true,
                reload: true                    
            });
}

Solution

  • Try to reload your page with reloadCurrent router's option

    Ex : yourView.router.navigate('urlPage', {reloadCurrent: true} );