How can I make Ionic drawer open on first load by default ? I could easily use other packages to achieve this I want to know if this supported by default
What do you mean by default? We need specifics.
On first page load - its usually closed. I need it open on first load
So what you would do is write a method in the app-component.ts file that opens the drawer when the app is being instantiated.
async openBottomSheet() {
const modal = await this.modalCtrl.create({
component: MyComponent,
breakpoints: [0, 0.3, 0.5, 0.8],
initialBreakpoint: 0.5
});
modal.present();
}
or you can create an inline modal. ion-modal: Ionic Mobile App Custom Modal API Component
Thank you but I already know about this as this is in the documentation. I want to use ion-menu: API Framework Docs for Types of Menu Components to create a drawer menu and have it open. That is it. Is there a property I dont see in the documentation that can be implemented by default e.g.
<IonMenu contentId="main-content" disabled={false} isOpen={true}>