I try to make a little app in ionic2
to learn about it but I have a problem with navigation.
In fact I have well understand the difference between a rootpage
(change whit nav.setRoot
) and a "normal" page (add with nav.push
). The thing is for my app I'll need to be able to open a side menu (this is ok if I'm on a rootpage
but not it's not ok with the second type of page) and to be able to go back (this is ok with a push page but not with a rootpage).
So for me this type of page should be push and not a root page but how repear side menu on this type of page?
Thank you.
EDIT:
What about using
persistent="true"
in yourion-menu
item? Like you can see in Ionic2 docs:So your
app.html
woul be: