Monday, October 21, 2019

Ionic 4 menu not working navigating to root.


I noticed that all events of root/home page isn't working after I have navigated back in my ionic 4 app.

So if you using a back button or a button to navigate to the root page use following code.

Click event of back/home menu item

  onHomeClick() {
    this.navController.navigateRoot('/menu');
    this.menuController.close();
  }



Sunday, October 20, 2019

Windows SDK not found. Ensure that you have installed Windows 8.1 SDK along with Visual Studio or install Windows 8.1 - ionic 4, WIndows 10 UWP

Windows 8.1 is pretty much outdated. I think most of portable windows devices using windows 10. So add following lines to config.xml of your cordova or ionic app.


    <platform name="windows">
        <preference name="windows-target-version" value="10.0" />
    </platform>