Issue with Disabling Menu on Login Page (standlaone project)

I’m facing an issue with disabling the menu on the login page of my Ionic Angular application. I’ve attempted several methods to ensure the menu is disabled, including using this.menuCtrl.enable(false) in both login.page.ts and app.component.ts, but the menu still appears.

Here’s what I’ve tried so far:

  1. MenuController in ionViewWillEnter and ngOnInit:
  • Implemented this.menuCtrl.enable(false, 'menu') to disable the menu specifically for the login page.
  1. Global Override in AppComponent:
  • Attempted to manage the menu globally based on the current route.

Despite these approaches, the menu remains accessible on the login page. Any advice on how to resolve this, or could this be a bug?

Ionic Version : ^8.0.0
Angular Version : ^18.0.0