I have a simple question but I cant't find a solution. I created a new project in Ionic 5 and I use "sidemenu" template. From documentation I read that close method should close the menu. I put in the constructor "public menuCtrl: MenuController" and in ngOnInit:
this.menuCtrl.close();
but nothing works. From debug I see menuCtrl empty.... Any ideas?