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

Disable the tabs on logout

$
0
0

@kevred wrote:

I am creating a ionic app with the tabs template.

Now initially i am using a login page and successful signing in you are redirected to the tabs page that controls all the other pages that appears in the tabs.

Now there is a logout page in the tabs section and when i click i should be able to logout from the session and goes to the initial login page where there is no tabs but just the login page. and on successful login i should see the tabs and all.

Right now if i log out and goes to the login page as below;

this.navCtrl.setRoot(LoginPage)

i am going to the login page but the tabs are shown as usual, and i could goes to the other pages by using tabs, which is not the intended behavour of my app, but should be shown only on successful login.

My question is how do i disable the tabs on logout and shows it again after i logged in, and achieve authentication?

EDIT

i am going to the tabs page from the login page

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70762

Trending Articles



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