@TheAnonymousMode wrote:
Hello guys,
I’ve two Angular components. The first contains a button to show/hide the side navigation.
- component:
<ion-menu-button>buton <ion-icon slot="start" name="menu"></ion-icon> </ion-menu-button>`
2.component
<ion-split-pane> <ion-menu contentId="sideMenu" type="overlay"> <ion-header> <ion-toolbar> <ion-title>Side Menu</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list> <div *ngIf="navigationElement.data"> <ion-menu-toggle auto-hide="false" *ngFor="let item of navigationElement.data.sideNavigation"> <ion-item> <ion-label>{{item.title}}</ion-label> </ion-item> </ion-menu-toggle> </div> </ion-list> </ion-content> </ion-menu> <ion-router-outlet id="sideMenu" main></ion-router-outlet> </ion-split-pane> <ion-split-pane> <ion-menu contentId="sideMenu2" type="overlay"> <ion-header> <ion-toolbar> <ion-title>Side Menu</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list> <div *ngIf="navigationElement.data"> <ion-menu-toggle auto-hide="false" *ngFor="let item of navigationElement.data.sideNavigation"> <ion-item> <ion-label>{{item.title}} 2</ion-label> </ion-item> </ion-menu-toggle> </div> </ion-list> </ion-content> </ion-menu> <ion-router-outlet id="sideMenu2" main></ion-router-outlet> </ion-split-pane>
How are the ion-menu-button in the first component and the ion-menu in the second component are connected? For testing purposes I added a second side menu in the second component. Now only the second toggles and the first is ignored.
Posts: 2
Participants: 2