Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70860

Problem in popToRoot()

$
0
0

@varshil29 wrote:

i implement logout functionalitry and in that i set nav.popToRoot() nut when user click on logout button they didn't redirect to login screen.

code that i used

static doLogout(service:WebService,alertCtrl:AlertController,nav:NavController)
    {

        try{
            service.logout().map(res => res.text()).subscribe(
                data => {
                    AllFunctions.closeLoading();
                      nav.popToRoot();
                    });
          }catch(error)
          {
            AllFunctions.doAlert(Constants.error + '- 471',alertCtrl);
          }
    }

call above function when pressed logout button

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>