ion-menu

Show a ion-menu in ionic3 without routing and without gestures

左心房为你撑大大i 提交于 2020-06-01 05:14:27
问题 I'm trying to implement a side menu like the one shown in the ion-menu component page. I just want to show the side menu programmatically, I don't mean to trigger navigation from it or have a burger button in the top bar. I use neither ion-router-outlet nor any other routing systems. I tried copying and pasting the example on the page, but what I get is an error in console: menu.js:292 Menu: must have a [content] element to listen for drag events on. Example: <ion-menu [content]="content">

ionic 4 adding side menu

六眼飞鱼酱① 提交于 2019-12-04 00:00:29
问题 i started a project with tab template which i then later decided to add a side menu. the trouble is the side menu does not appear at all. here is my app.components.html looks like <ion-app> <ion-split-pane> <ion-menu side="start"> <ion-header translucent> <ion-toolbar color="secondary"> <ion-title>Menu</ion-title> </ion-toolbar> </ion-header> <ion-content><ion-list><ion-item>he vik</ion-item></ion-list></ion-content> </ion-menu> <ion-router-outlet></ion-router-outlet> </ion-split-pane> </ion