Ion-nav-view for left menu


#1

Hello,

I want to put my left menu content to a template

<ion-side-menu side="left" class="dark-bg">
    <ion-nav-view name="menuContent"></ion-nav-view>
</ion-side-menu>

But Now my side menu have the default white background of the view class.

Is this the good practice to separate the menu like this or am I missing something ?


#2

I am not sure if this helps but I did some tricks with mine to allow for a static background with the white menu over the top. You can check it out here: [enter link description here][1]

The only big problem is I cannot disable the side menu when I need to. Either way I hope this at least demonstrates one way of doing it.
[1]: http://vanillaionic.schematical.com/


#3

Putting it in a separate view class is no problem. The sidemenu content is not really styled very much anyway. That’s left up to you.


#4

Thank you for your replies,

and thank you @Calendee for your example !


#5

An other example is available here : http://codepen.io/ionic/pen/tcIGK