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

URL param is persisting on tab switch

$
0
0

@alxvallejo wrote:

I have a conversations tab, and when you select a conversation it adds the message ID to the URL. If i navigate to a different tab and then back to the Conversations tab to view my conversations, the message ID is still in the URL and I am unable to see the list view of my conversations.

I've tried the following approaches:

  1. Add a leave event to remove the state param.
  2. $location.search('conversationId', null);

Neither have worked. How can I have make sure that the tab always routes to the same view and not a nested view (due to state params)?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49076

Trending Articles