Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49103

Tab showing active after redirect within Controller

$
0
0

@nrb6 wrote:

Hi,
I'm new to Ionic so fully expect this to be an issue where I'm using the wrong approach or missing something basic.
I've got a tabbed app and set the default tab to 'Terms', a page where the user must click to accept the terms of the app before continuing. When the user accepts (submits the form) they're redirected to a 'User' tab where they fill in their details.

When the app. is restarted, the 'Terms' controller checks to see if the user has previously accepted the terms and if so, automatically redirects to the user tab using $state.go. The redirect is working but both the 'User' and the 'Terms' tab icons are showing as active with this automatic redirect. What am I missing in the redirect / transition away from 'Terms' which is leaving the tab icon active?

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49103

Trending Articles



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