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

Attach single state to multiple navigation stacks

$
0
0

@arashb wrote:

Let's say I have two tabs:

1) a list of users, each with an item that goes to a user profile
2) list of teams that go to a list of users with an item that goes to a user profile

I'd like to use the same "state" within $stateProvider for both actions when I goto a user profile.

How can I accomplish this while using the same controllers, view templates, etc?

Right now, I've defined the user profile as a sub-state of tab1, so when I go to the user profile page from tab2, it jumps to tab1. I'd like to keep both navigation stack histories separate. How can I achieve this cleanly, without having to duplicate code?

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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