Ion-menu toggle is not working in web-app ionic 4 beta

I am trying to implement side-menu toggle in all platform including web-app using ion-menu and ion-menu-toggle ,It’s working fine in mobile app but not working in,I want sidemenu to toggle in both web-app and mobile app using same code so please,Help me out in this.
This is my implementation.

 <ion-menu-toggle auto-hide="false">
          <ion-item *ngFor="let p of appPages" [routerDirection]="'root'" [routerLink]="[p.url]" >
              <ion-icon slot="start" [name]="p.icon"></ion-icon>