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

Go Back to previous view when user clicks on menu-element

$
0
0

@William_Wallace wrote:

Hello together,
this time I have a specific questions for the ionicHistory and the go-Back possibility.

What I want to do:
- I have multiple views (Start, Infos, ...). Inside those views are links to other views (with ui-sref). When I click on such an "inside"-link I get an back Button.

Now my special case:
- When I am in such an inside-view and open the menu, and click on a menu-element. I get to the next view, but there is no back button shown.

I know, that is caused bei the ui-sref and the ionicHistory-Stack. So I log the IonicHistory-Stack via viewHistory() and there is noch backView or something after the special case.

Does anybody has an idea how I can get that working?

I already find this here: https://forum.ionicframework.com/t/how-can-i-use-ionichistory-to-go-back-2-views/16176. But that wont work, because the view is not in the backView of the viewHistory-object.

Thanks for every suggestion.

My menu is build like this:

    <ion-item menu-close ui-sref="app.infos">
      <i class="iconion-ios-home"></i>
    </ion-item>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49171

Trending Articles



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