Issue when adding sideBar menu to an existing ionic2 project
I am already working in an Ionic2 project, but I am facing difficulties in adding a sidebar menu.
Currently my code looks like the following, when I click on the menu icon, the menu seems to show behind the navbar and the whole view itself.
I believe the way I am following is a wrong way to implement the sidebar or maybe it's a bug.
Home.html
<ion-header>
<ion-navbar mainPageNavBarColor>
<button menuToggle start>
<ion-icon name="menu"></ion-icon>
</button>
<ion-menu [content]="mycontent">
<ion-content>
<ion-list>
<button menuClose ion-item detail-none>Close Menu</button>
</ion-list>
<ion-list>
<button menuClose ion-item detail-none>Close Menu 2</button>
</ion-list>
<ion-list>
<button menuClose ion-item detail-none>Close Menu 3</button>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav #mycontent [root]="rootPage"></ion-nav>
</ion-navbar>
</ion-header>
Can you please tell me what's wrong?
Your system information:
Cordova CLI: 6.2.0 Ionic Framework Version: 2.0.0-beta.10 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v5.9.0 Xcode version: Xcode 7.3.1 Build version 7D1014
I placed ion-menu inside the template of app.js and I was able to solve it.
Please close this issue.