How do i create sub menus in menu toggle?

I create menu toggle in list and also add sub menu in this list

I am afraid your question is not clear, please share your code and describe your problem in more detail.

<ion-menu [content]=“content”>

<ion-toolbar color="primary">

 <ion-title> Adaptive</ion-title>
       <ion-list-header style="background-color: #1e282c;height: 30px;" >
  <ion-icon name="speedometer" style="padding-top: 20px"></ion-icon>  &nbsp;Dashboard
  </ion-list-header>
    <ion-list style="background-color: #1e282c">
     <hr/>
        <button style="background-color: #1e282c" ion-item *ngFor="let p of pages" (click)="openPage(p)">
                <ion-icon item-left [name]="p.icon"></ion-icon>{{p.title}}</button>
    </ion-list>


</ion-content>

this is my code can i add sub menu from this parent menu

1 Like